Expand description
Presets, identity accounts and self. Split out of server/mod.rs unchanged (SPEC_LARGE_FILE_MODULE_ANALYSIS_2026_09_30.md Β§4.1).
StructsΒ§
- Agent
Identity πAccounts Query - Agent
Identity πCheck Limits Request - Agent
Identity πSwitch Request - Agent
Identity πValidate Request - Agent
Preset πGetQuery - Self
Query π
FunctionsΒ§
- handle_
agent_ πidentity_ accounts GET /api/v1/agent/identity/accounts?agent_id=<slug>β list the agentβs own linked credential accounts (masked tails only, never secrets). Backs theIdentityAccountsMCP tool.- handle_
agent_ πidentity_ check_ limits POST /api/v1/agent/identity/check-limits: look again, now, at the agents marked out of quota. BacksIdentitywith actioncheck_limits(task #2648): a small turn on each, and one that works clears the limit.- handle_
agent_ πidentity_ switch POST /api/v1/agent/identity/switchβ move an agent (the caller by default) to another signed-in account of its provider, now or when its turn ends. BacksIdentitywith actionswitch; the audit row names the caller (SPEC_ACCOUNT_SWITCH_FROM_THE_COMPOSER_NO_BIND_2026_10_26.md Β§3.4).- handle_
agent_ πidentity_ validate POST /api/v1/agent/identity/validateβ live-probe one of the agentβs own linked accounts using its stored keychain secret (the agent never supplies a secret). Backs theIdentityValidateMCP tool.- handle_
agent_ πpreset_ get GET /api/v1/agent/preset/get?agent_id=<slug>&id=&name=β fetch a preset by id or name; with neither, return the agentβs own bound preset (self). Backs thePresetGetMCP tool.- handle_
agent_ πpreset_ list GET /api/v1/agent/preset/listβ list all presets (shared catalog, summary fields only). Backs thePresetListMCP tool.- handle_
self π GET /api/v1/self?block_id=<id>β resolve the calling agentβs place in the object tree (block β tab β window β workspace, with their names). The sidecar serves many agents, so the caller identifies itself by its block id (the MCPWhoAmItool passesAGENTMUX_BLOCKID). Naming verbs reuse the same resolver to default their target to the agentβs own context.