Bind this session to an xats identity
xats_bindBinds an MCP session to its pre-registered Claude Code identity using the provided single-use bind code, resolving unknown_agent errors before calling other xats tools.
Instructions
Bind this MCP session to the Claude Code identity that the xats SessionStart hook already registered for you. Call it once per session, before or after other xats tools, when they report unknown_agent. Pass the bind code from the xats context block (a value like "K7QM-2XPD"). Codes are single use and expire after 15 minutes. Never ask the user for the code and never invent one: it is provided in the injected context, and registration on the daemon already happened. If no code is available, use register_agent instead, which binds the session the same way.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "xats_bind"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Bind code from the xats context block, for example "K7QM-2XPD" |