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 ๐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_ 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.