# mcp.caller.CallerIdentity.relation_to

- **Module:** mcp.caller.CallerIdentity
- **Package:** tmux-mcp
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/tmux-mcp/src/caller.rs#L199
- **Page:** https://libtmux.org/en/rs/latest/mcp/reference/mcp-caller-calleridentity-relation_to/

```
mcp.caller.CallerIdentity.relation_to(self, pane_id: &str, server_socket: Option<&Path>) -> Relation
```

Whether a pane on the given server is provably this process's own.

Positive only on a confirmed socket match, because this drives an
annotation an agent reads as fact. Anything less is [`Relation::Other`]:
a bare pane-id match across two sockets is the false positive this
whole module exists to avoid.
