# CallerIdentity.current(environment:)

- **Module:** CallerIdentity
- **Package:** LibTmuxMCP
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/254f8b2be7eb60cacc3ffcb3ea8e456784f582df/Sources/LibTmuxMCP/Caller.swift#L24
- **Page:** https://libtmux.org/en/swift/latest/mcp/reference/calleridentity-current(environment-)/

```
CallerIdentity.current(environment:)(environment: [String : String]) -> CallerIdentity?
```

Reads the surrounding tmux, or `nil` when both context variables are absent.

An incomplete or malformed environment remains present as an invalid
identity so an input guard cannot mistake it for a detached process.
