{"openapi":"3.1.0","info":{"title":"AgentPlaybooks Management API","description":"API for AI agents to create and manage playbooks. Use with User API Key for authentication.","version":"1.1.0"},"servers":[{"url":"https://agentplaybooks.ai/api"}],"security":[{"bearerAuth":[]}],"paths":{"/manage/playbooks":{"get":{"operationId":"listPlaybooks","summary":"List all playbooks owned by the authenticated user","responses":{"200":{"description":"List of playbooks","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Playbook"}}}}}}},"post":{"operationId":"createPlaybook","summary":"Create a new playbook","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","description"],"properties":{"name":{"type":"string","description":"Playbook name"},"description":{"type":"string","description":"Playbook description"},"visibility":{"type":"string","enum":["public","private","unlisted"],"description":"Visibility of the playbook"}}}}}},"responses":{"201":{"description":"Playbook created"}}}},"/manage/playbooks/{id}":{"get":{"operationId":"getPlaybook","summary":"Get playbook details including personas, skills, and MCP servers","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Playbook details"}}},"put":{"operationId":"updatePlaybook","summary":"Update playbook","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"visibility":{"type":"string","enum":["public","private","unlisted"],"description":"Visibility of the playbook"}}}}}},"responses":{"200":{"description":"Playbook updated"}}},"delete":{"operationId":"deletePlaybook","summary":"Delete playbook","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Playbook deleted"}}}},"/manage/playbooks/{id}/personas":{"post":{"operationId":"createPersona","summary":"Add a persona to a playbook","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","system_prompt"],"properties":{"name":{"type":"string","description":"Persona name"},"system_prompt":{"type":"string","description":"System prompt for the AI"},"metadata":{"type":"object","description":"Optional metadata"}}}}}},"responses":{"201":{"description":"Persona created"}}}},"/manage/playbooks/{id}/personas/{pid}":{"put":{"operationId":"updatePersona","summary":"Update a persona","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"pid","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"system_prompt":{"type":"string"},"metadata":{"type":"object"}}}}}},"responses":{"200":{"description":"Persona updated"}}},"delete":{"operationId":"deletePersona","summary":"Delete a persona","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"pid","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Persona deleted"}}}},"/manage/playbooks/{id}/skills":{"post":{"operationId":"createSkill","summary":"Add a skill to a playbook","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Agent Skills-compatible name (lowercase kebab-case)"},"description":{"type":"string","description":"What the skill does"},"definition":{"type":"object","description":"Skill definition with parameters schema","properties":{"parameters":{"type":"object","properties":{"type":{"type":"string","enum":["object"]},"properties":{"type":"object"},"required":{"type":"array","items":{"type":"string"}}}}}},"examples":{"type":"array","description":"Example usages"}}}}}},"responses":{"201":{"description":"Skill created"}}}},"/manage/playbooks/{id}/skills/{sid}":{"put":{"operationId":"updateSkill","summary":"Update a skill","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"sid","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"definition":{"type":"object"},"examples":{"type":"array"}}}}}},"responses":{"200":{"description":"Skill updated"}}},"delete":{"operationId":"deleteSkill","summary":"Delete a skill","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"sid","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Skill deleted"}}}},"/manage/playbooks/{id}/memory":{"delete":{"operationId":"resetMemories","summary":"Permanently reset all memories in a playbook","description":"Deletes every memory, including archived memories and previous versions. Ignores search filters and pagination. Requires memory:write and owner or editor access.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"All memories and their history deleted"},"401":{"description":"Authentication or memory:write permission required"},"404":{"description":"Playbook not found or write access denied"}}},"get":{"operationId":"listMemories","summary":"List or search memories in a playbook","description":"Search current memories by default. scope=archived includes archived entries and previous versions; history_key selects the history of one current key. Supports text, tags, memory time and pagination.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Playbook ID"},{"name":"key","schema":{"type":"string"},"description":"Read the current entry by key, including archived entries","in":"query","required":false},{"name":"id","schema":{"type":"string","format":"uuid"},"description":"Read the current entry by memory ID","in":"query","required":false},{"name":"history_key","schema":{"type":"string"},"description":"Previous versions linked to this current key","in":"query","required":false},{"name":"search","schema":{"type":"string"},"description":"Case-insensitive literal text in keys, JSON values, descriptions and summaries","in":"query","required":false},{"name":"scope","schema":{"type":"string","enum":["active","archived","all"],"default":"active"},"description":"Archived includes manually archived entries and previous versions","in":"query","required":false},{"name":"after","schema":{"type":"string","format":"date-time"},"description":"Inclusive lower bound on memory_at","in":"query","required":false},{"name":"before","schema":{"type":"string","format":"date-time"},"description":"Inclusive upper bound on memory_at","in":"query","required":false},{"name":"tags","schema":{"type":"string"},"description":"Comma-separated tags (any match)","in":"query","required":false},{"name":"tier","schema":{"type":"string","enum":["working","contextual","longterm"]},"in":"query","required":false},{"name":"memory_type","schema":{"type":"string","enum":["flat","hierarchical"]},"in":"query","required":false},{"name":"status","schema":{"type":"string","enum":["pending","running","completed","failed","blocked"]},"in":"query","required":false},{"name":"include_children","schema":{"type":"boolean","default":true},"in":"query","required":false},{"name":"limit","schema":{"type":"integer","minimum":1,"maximum":200,"default":100},"in":"query","required":false},{"name":"offset","schema":{"type":"integer","minimum":0,"default":0},"in":"query","required":false}],"responses":{"200":{"description":"List of memories","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Memory"}}}}}}}},"/manage/playbooks/{id}/memory/{key}":{"get":{"operationId":"getMemory","summary":"Get a specific memory by key","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"key","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Memory entry"}}},"put":{"operationId":"writeMemory","summary":"Create or update a memory entry","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"key","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","minProperties":1,"properties":{"value":{"description":"Any JSON value to store; required when creating a new entry"},"memory_at":{"type":"string","format":"date-time","description":"Optional memory time with timezone; defaults to save time when value is supplied"},"is_archived":{"type":"boolean","description":"Hide from normal search; false restores visibility. Can be updated without resending value."},"tags":{"type":"array","items":{"type":"string"},"description":"Tags for categorization"},"description":{"type":"string","description":"Human-readable description"}}}}}},"responses":{"200":{"description":"Memory written"}}},"delete":{"operationId":"deleteMemory","summary":"Delete a memory entry","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"key","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Memory deleted"}}}},"/control/get_profile":{"post":{"operationId":"get_profile","summary":"Return the profile represented by this connection's validated credentials. Use to check which AgentPlaybooks account is connected before choosing a playbook or reconnecting. The opaque ID stays stable across reconnections. Read-only; accepts no account selector.","description":"Return the profile represented by this connection's validated credentials. Use to check which AgentPlaybooks account is connected before choosing a playbook or reconnecting. The opaque ID stays stable across reconnections. Read-only; accepts no account selector.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"pattern":"\\S"},"name":{"type":"string"},"email":{"type":"string"},"nickname":{"type":"string"}},"required":["id"],"additionalProperties":false}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"get_profile"}},"/control/get_connection_info":{"post":{"operationId":"get_connection_info","summary":"Inspect this authenticated connection without reading secrets or changing data. Returns server catalog revision, active toolset, credential kind, account permissions, advertised and server-callable built-in names, and host-refresh guidance. Server support does not prove the host registered a callable function. Account permissions do not establish access to a particular playbook; list_secrets checks that separately and reports per-secret reveal policy. Use after a failure or on request, not before every task.","description":"Inspect this authenticated connection without reading secrets or changing data. Returns server catalog revision, active toolset, credential kind, account permissions, advertised and server-callable built-in names, and host-refresh guidance. Server support does not prove the host registered a callable function. Account permissions do not establish access to a particular playbook; list_secrets checks that separately and reports per-secret reveal policy. Use after a failure or on request, not before every task.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"get_connection_info"}},"/control/list_playbooks":{"post":{"operationId":"list_playbooks","summary":"Find playbooks owned by or shared with the authenticated user by a literal name fragment. Returns compact metadata, access roles and counts, not instructions, persona prompts or config. Default 50 results, newest first; use offset for the next page. Supports the first 1000 matches; narrow query for larger accounts. Read-only; requires playbooks:read or full. Reuse a known ID instead of listing before every operation; get_playbook retrieves one playbook's context.","description":"Find playbooks owned by or shared with the authenticated user by a literal name fragment. Returns compact metadata, access roles and counts, not instructions, persona prompts or config. Default 50 results, newest first; use offset for the next page. Supports the first 1000 matches; narrow query for larger accounts. Read-only; requires playbooks:read or full. Reuse a known ID instead of listing before every operation; get_playbook retrieves one playbook's context.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","maxLength":200,"description":"Case-insensitive literal name fragment; omit to browse"},"limit":{"type":"integer","minimum":1,"maximum":100,"default":50,"description":"Maximum metadata entries in this page (1-100)"},"offset":{"type":"integer","minimum":0,"maximum":999,"default":0,"description":"Skip this many matches; pages stop at the first 1000 matches. Narrow query for larger accounts."}}}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{"type":"object","properties":{"playbooks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"guid":{"type":"string"},"name":{"type":"string"},"current_user_role":{"type":"string"},"persona_count":{"type":"number"}},"additionalProperties":true}}},"required":["playbooks"]}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"list_playbooks"}},"/control/create_playbook":{"post":{"operationId":"create_playbook","summary":"Create a new playbook container for a singleton persona, skills, and memory. Each call inserts a new playbook; it does not upsert by name. Requires playbooks:write or full permission. Use update_playbook to change an existing playbook, not this tool.","description":"Create a new playbook container for a singleton persona, skills, and memory. Each call inserts a new playbook; it does not upsert by name. Requires playbooks:write or full permission. Use update_playbook to change an existing playbook, not this tool.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Name of the playbook"},"description":{"type":"string","description":"Description of what the playbook is for"},"visibility":{"type":"string","enum":["public","private","unlisted"],"description":"Visibility of the playbook","default":"private"},"tags":{"type":"array","items":{"type":"string"},"description":"Discovery and organization tags"},"persona_name":{"type":"string","description":"Initial persona name"},"persona_system_prompt":{"type":"string","description":"Initial persona/system prompt"},"persona_metadata":{"type":"object","description":"Initial persona metadata"},"instructions":{"type":"string","description":"Always-on project instructions (the AGENTS.md / CLAUDE.md content). Separate from the persona: the persona is who the agent is, these are the rules of this project."}},"required":["name"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"create_playbook"}},"/control/get_playbook":{"post":{"operationId":"get_playbook","summary":"Get a playbook with its singleton persona and compact skill, connected-server and memory metadata. Compact memory is paged (20 by default); memory_page reports has_more and next_offset. Skill bodies, memory values and server configurations are omitted unless include_content=true, an explicit full-content export. This is the only persona retrieval tool; there is no get_persona. Read-only; requires playbooks:read or full. Use list_playbooks for IDs, get_skill / get_skill_reference for selected instructions and search_memory / read_memory for selected facts.","description":"Get a playbook with its singleton persona and compact skill, connected-server and memory metadata. Compact memory is paged (20 by default); memory_page reports has_more and next_offset. Skill bodies, memory values and server configurations are omitted unless include_content=true, an explicit full-content export. This is the only persona retrieval tool; there is no get_persona. Read-only; requires playbooks:read or full. Use list_playbooks for IDs, get_skill / get_skill_reference for selected instructions and search_memory / read_memory for selected facts.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID of the playbook"},"include_content":{"type":"boolean","default":false,"description":"Restore the full skill, memory and server payload; prefer targeted reads"},"memory_limit":{"type":"integer","minimum":1,"maximum":100,"default":20,"description":"Memory metadata page size in compact mode; use search_memory for focused recall"},"memory_offset":{"type":"integer","minimum":0,"maximum":10000,"default":0,"description":"Memory metadata offset in compact mode"}},"required":["playbook_id"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"get_playbook"}},"/control/delete_playbook":{"post":{"operationId":"delete_playbook","summary":"Permanently delete a playbook and all of its contents (persona, skills, memory, API keys, canvas, and secrets). This cannot be undone. Requires playbooks:write or full permission, and only the owner may delete. Do not use this to reset a persona (delete_persona) or remove a single skill or memory; those have dedicated tools.","description":"Permanently delete a playbook and all of its contents (persona, skills, memory, API keys, canvas, and secrets). This cannot be undone. Requires playbooks:write or full permission, and only the owner may delete. Do not use this to reset a persona (delete_persona) or remove a single skill or memory; those have dedicated tools.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID of the playbook to delete"}},"required":["playbook_id"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"delete_playbook"}},"/control/create_persona":{"post":{"operationId":"create_persona","summary":"Set the playbook's singleton persona name and system prompt. This does not add a second persona; it is a backward-compatible alias that overwrites those fields. Requires personas:write or full permission. Prefer update_persona to change a subset of fields. Use update_playbook only when you also need playbook name, visibility, config, or project instructions. Do not use delete_persona unless you intend to reset to the default Assistant.","description":"Set the playbook's singleton persona name and system prompt. This does not add a second persona; it is a backward-compatible alias that overwrites those fields. Requires personas:write or full permission. Prefer update_persona to change a subset of fields. Use update_playbook only when you also need playbook name, visibility, config, or project instructions. Do not use delete_persona unless you intend to reset to the default Assistant.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID of the playbook"},"name":{"type":"string","description":"Name of the persona"},"system_prompt":{"type":"string","description":"The system prompt that defines this persona's behavior"},"metadata":{"type":"object","description":"Optional metadata"}},"required":["playbook_id","name","system_prompt"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"create_persona"}},"/control/update_persona":{"post":{"operationId":"update_persona","summary":"Edit the playbook's one persona: name, system prompt or metadata. Omitted fields stay unchanged. Example: {playbook_id, system_prompt: 'Review Python code'}. Requires personas:write or full. Use reset_persona only to discard custom persona settings. Use update_playbook for project name, visibility or instructions. Legacy persona_id is optional and must equal playbook_id if supplied.","description":"Edit the playbook's one persona: name, system prompt or metadata. Omitted fields stay unchanged. Example: {playbook_id, system_prompt: 'Review Python code'}. Requires personas:write or full. Use reset_persona only to discard custom persona settings. Use update_playbook for project name, visibility or instructions. Legacy persona_id is optional and must equal playbook_id if supplied.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID of the playbook"},"persona_id":{"type":"string","description":"Must equal playbook_id; the persona is a singleton stored on the playbook"},"name":{"type":"string","description":"New name"},"system_prompt":{"type":"string","description":"New system prompt"},"metadata":{"type":"object","description":"New metadata"}},"required":["playbook_id"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"update_persona"}},"/control/delete_persona":{"post":{"operationId":"delete_persona","summary":"Reset the playbook's singleton persona to the default Assistant name and system prompt. Despite the delete_* name, this is not a hard delete: each playbook always keeps exactly one logical persona, so the fields are overwritten rather than removed. persona_id must equal playbook_id because the persona is stored on the playbook row. Custom name, system prompt, and metadata are permanently replaced and cannot be undone. Requires personas:write or full permission. Use update_persona to change fields without resetting, create_persona to set a new identity, and delete_playbook only when the entire playbook should be removed.","description":"Reset the playbook's singleton persona to the default Assistant name and system prompt. Despite the delete_* name, this is not a hard delete: each playbook always keeps exactly one logical persona, so the fields are overwritten rather than removed. persona_id must equal playbook_id because the persona is stored on the playbook row. Custom name, system prompt, and metadata are permanently replaced and cannot be undone. Requires personas:write or full permission. Use update_persona to change fields without resetting, create_persona to set a new identity, and delete_playbook only when the entire playbook should be removed.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID of the playbook"},"persona_id":{"type":"string","description":"Must equal playbook_id; the persona is a singleton stored on the playbook"}},"required":["playbook_id","persona_id"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"delete_persona"}},"/control/reset_persona":{"post":{"operationId":"reset_persona","summary":"Reset this playbook's persona to Assistant with the default system prompt and empty metadata. Discards custom persona settings; keeps the playbook, skills and memories. Requires personas:write or full and write access. Use update_persona to edit selected fields instead.","description":"Reset this playbook's persona to Assistant with the default system prompt and empty metadata. Discards custom persona settings; keeps the playbook, skills and memories. Requires personas:write or full and write access. Use update_persona to edit selected fields instead.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID of the playbook"}},"required":["playbook_id"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"reset_persona"}},"/control/find_tools":{"post":{"operationId":"find_tools","summary":"Find operations by keyword; set include_schemas=false for short summaries. Omitted include_schemas preserves the legacy full-schema response. Exact names rank first; partial matches report missing_terms. Search covers this playbook’s built-in and connected tools, within the active toolset. A schema does not register a host function: use an exposed tool or the authenticated REST operations endpoint. Never infer secret absence or policy from a missing host function. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Find operations by keyword; set include_schemas=false for short summaries. Omitted include_schemas preserves the legacy full-schema response. Exact names rank first; partial matches report missing_terms. Search covers this playbook’s built-in and connected tools, within the active toolset. A schema does not register a host function: use an exposed tool or the authenticated REST operations endpoint. Never infer secret absence or policy from a missing host function. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"query":{"type":"string","description":"Keywords to match against tool names and descriptions, e.g. 'sql tables' or 'archive memory'"},"limit":{"type":"number","description":"Maximum matches to return (default 10, max 25)"},"include_schemas":{"type":"boolean","default":true,"description":"Legacy default includes schemas; set false for compact names and summaries, then true for selected details"}},"required":["playbook_id","query"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{"type":"object","properties":{"matches":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Server operation name; host registration is separate"},"description":{"type":"string"},"inputSchema":{"type":"object","description":"Included unless include_schemas=false is explicitly requested"},"match":{"type":"string","enum":["exact","all_terms","partial"]},"missing_terms":{"type":"array","items":{"type":"string"}}},"required":["name","description"]}}},"required":["matches"]}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"find_tools"}},"/control/list_skills":{"post":{"operationId":"list_skills","summary":"List every skill currently attached to this playbook as metadata: id, name, description (up to 512 characters), licence, priority and created_at. Content and attachment bodies are omitted by default. Use get_skill for one definition, then get_skill_reference for one file or Markdown section. Set include_content=true only for an explicit full-content listing. Read-only. Do not use list_skill_versions, which lists historical revisions of one skill. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"List every skill currently attached to this playbook as metadata: id, name, description (up to 512 characters), licence, priority and created_at. Content and attachment bodies are omitted by default. Use get_skill for one definition, then get_skill_reference for one file or Markdown section. Set include_content=true only for an explicit full-content listing. Read-only. Do not use list_skill_versions, which lists historical revisions of one skill. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"include_content":{"type":"boolean","default":false,"description":"Include full SKILL.md contents; omitted by default to keep discovery small"}},"required":["playbook_id"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{"type":"object","properties":{"skills":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Skill UUID"},"name":{"type":"string"},"description":{"type":["string","null"]},"content":{"type":["string","null"]},"licence":{"type":["string","null"]},"publisher_id":{"type":["string","null"]},"priority":{"type":["number","null"]},"created_at":{"type":"string"}}}}},"required":["skills"]}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"list_skills"}},"/control/get_skill":{"post":{"operationId":"get_skill","summary":"Return the full definition of one skill: SKILL.md content, metadata, and an attachment manifest with filenames and sizes. For only the manifest set include_content=false. Attachment bodies are omitted by default; read one with get_skill_reference, or set include_attachments=true for a complete export. skill_id accepts a UUID or kebab-case name. Declared demonstrations include resolved recording and segment links. Read-only. Use list_skills to discover IDs; list_skill_versions is historical data, not the current definition. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Return the full definition of one skill: SKILL.md content, metadata, and an attachment manifest with filenames and sizes. For only the manifest set include_content=false. Attachment bodies are omitted by default; read one with get_skill_reference, or set include_attachments=true for a complete export. skill_id accepts a UUID or kebab-case name. Declared demonstrations include resolved recording and segment links. Read-only. Use list_skills to discover IDs; list_skill_versions is historical data, not the current definition. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"skill_id":{"type":"string","description":"Skill ID or name"},"include_content":{"type":"boolean","default":true,"description":"Set false for metadata and attachment manifest only"},"include_attachments":{"type":"boolean","default":false,"description":"Include every attachment body; prefer get_skill_reference for one file"}},"required":["playbook_id","skill_id"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"playbook_id":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"content":{"type":["string","null"]},"licence":{"type":["string","null"]},"publisher_id":{"type":["string","null"]},"priority":{"type":["number","null"]},"created_at":{"type":"string"},"skill_attachments":{"type":"array","items":{"type":"object"}},"demonstrations":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"string","enum":["youtube","hf_dataset","url"]},"ref":{"type":"string"},"fidelity":{"type":"string","enum":["video","sensorimotor"]},"role":{"type":"string","enum":["demonstration","reference","warning"]},"title":{"type":"string"},"sha256":{"type":"string","description":"Hex SHA-256 the downloaded recording must match; url references only."},"url":{"type":"string"},"segments":{"type":"array","items":{"type":"object","properties":{"start":{"type":"number"},"end":{"type":"number"},"label":{"type":"string"},"comment":{"type":"string"},"timestamp":{"type":"string"},"url":{"type":"string"}},"required":["start","timestamp","url"]}}},"required":["provider","ref","fidelity","role","url","segments"]}}}}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"get_skill"}},"/control/get_skill_reference":{"post":{"operationId":"get_skill_reference","summary":"Read exactly one skill file, optionally just one Markdown heading and its subsections. Use a filename from get_skill's attachment manifest, or SKILL.md for the main instructions. section matches the first exact ATX heading (without #, case-insensitive); code-fence headings are ignored. Returns at most max_chars (default 12000, maximum 32000), with next_offset for continuation within the selected text. Offsets count UTF-16 string units. Read-only; the parent skill must belong to this playbook. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Read exactly one skill file, optionally just one Markdown heading and its subsections. Use a filename from get_skill's attachment manifest, or SKILL.md for the main instructions. section matches the first exact ATX heading (without #, case-insensitive); code-fence headings are ignored. Returns at most max_chars (default 12000, maximum 32000), with next_offset for continuation within the selected text. Offsets count UTF-16 string units. Read-only; the parent skill must belong to this playbook. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"skill_id":{"type":"string","description":"Skill UUID or name"},"filename":{"type":"string","description":"Exact attachment filename, including its folder, or SKILL.md"},"section":{"type":"string","description":"Optional exact Markdown heading without # prefixes"},"offset":{"type":"integer","minimum":0,"default":0,"description":"Zero-based UTF-16 offset within the selected file or section; use the previous next_offset"},"max_chars":{"type":"integer","minimum":1,"maximum":32000,"default":12000,"description":"Maximum UTF-16 string units returned in content; default 12000, maximum 32000"}},"required":["playbook_id","skill_id","filename"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{"type":"object","properties":{"skill_id":{"type":"string"},"filename":{"type":"string"},"content":{"type":"string"},"offset":{"type":"integer"},"next_offset":{"type":["integer","null"]},"total_chars":{"type":"integer"},"truncated":{"type":"boolean"},"section_start_line":{"type":"integer"},"section":{"type":"string"}},"required":["skill_id","filename","content","offset","next_offset","truncated","total_chars"]}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"get_skill_reference"}},"/control/read_memory":{"post":{"operationId":"read_memory","summary":"Read one memory entry by key and return its value, tags, tier, summary, and metadata. This is not a pure read: it increments access_count and updates last_accessed_at as a side effect, without changing the stored value. There is no update_memory; use write_memory to overwrite a key. Use search_memory to find keys, get_memory_context for a tiered summary, or get_memory_tree for hierarchical task graphs. Do not pass memory_type; that filter belongs to search_memory. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Read one memory entry by key and return its value, tags, tier, summary, and metadata. This is not a pure read: it increments access_count and updates last_accessed_at as a side effect, without changing the stored value. There is no update_memory; use write_memory to overwrite a key. Use search_memory to find keys, get_memory_context for a tiered summary, or get_memory_tree for hierarchical task graphs. Do not pass memory_type; that filter belongs to search_memory. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"key":{"type":"string","description":"Memory key to read"}},"required":["playbook_id","key"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string"},"value":{},"tags":{"type":"array","items":{"type":"string"}},"description":{"type":["string","null"]},"tier":{"type":"string","enum":["working","contextual","longterm"]},"priority":{"type":"number"},"parent_key":{"type":["string","null"]},"summary":{"type":["string","null"]},"access_count":{"type":"number"},"updated_at":{"type":"string"},"memory_at":{"type":"string","format":"date-time"},"is_archived":{"type":"boolean"}}}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"read_memory"}},"/control/search_memory":{"post":{"operationId":"search_memory","summary":"Search memory keys, JSON values, descriptions and summaries. Defaults to current, non-archived memories. scope='archived' searches archived entries and previous versions; scope='all' searches both. Results include memory_at and history_id (null for current entries). Use get_memory_history for one key's previous versions, or read_memory for its current value. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Search memory keys, JSON values, descriptions and summaries. Defaults to current, non-archived memories. scope='archived' searches archived entries and previous versions; scope='all' searches both. Results include memory_at and history_id (null for current entries). Use get_memory_history for one key's previous versions, or read_memory for its current value. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"search":{"type":"string","description":"Literal text in keys, JSON values, descriptions and summaries"},"scope":{"type":"string","enum":["active","archived","all"],"default":"active","description":"active: current; archived: archived and previous versions; all: both"},"after":{"type":"string","format":"date-time","description":"Inclusive lower bound on memory_at"},"before":{"type":"string","format":"date-time","description":"Inclusive upper bound on memory_at"},"limit":{"type":"integer","minimum":1,"maximum":200,"default":100,"description":"Page size"},"offset":{"type":"integer","minimum":0,"default":0,"description":"Results to skip, for paging"},"tags":{"type":"array","items":{"type":"string"},"description":"Filter by tags (any match)"},"tier":{"type":"string","enum":["working","contextual","longterm"],"description":"Filter by memory tier"},"memory_type":{"type":"string","enum":["flat","hierarchical"],"description":"Filter by memory type"},"status":{"type":"string","enum":["pending","running","completed","failed","blocked"],"description":"Filter by task status (hierarchical only)"},"include_children":{"type":"boolean","description":"Include child memories in results","default":false}},"required":["playbook_id"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"search_memory"}},"/control/get_memory_history":{"post":{"operationId":"get_memory_history","summary":"Read previous versions of a memory by its current key, including original memory_at and saved contents. History is excluded from normal search. To restore a version, write its contents and memory_at with write_memory and is_archived=false. Read-only. Unlike get_memory_context (current entries by tier) and get_memory_tree (hierarchy), this returns one key's past versions. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Read previous versions of a memory by its current key, including original memory_at and saved contents. History is excluded from normal search. To restore a version, write its contents and memory_at with write_memory and is_archived=false. Read-only. Unlike get_memory_context (current entries by tier) and get_memory_tree (hierarchy), this returns one key's past versions. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"key":{"type":"string","description":"Current key of the memory"},"search":{"type":"string","description":"Optional text within this memory's history"},"limit":{"type":"integer","minimum":1,"maximum":200,"default":100,"description":"Page size"},"offset":{"type":"integer","minimum":0,"default":0,"description":"Versions to skip, for paging"}},"required":["playbook_id","key"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"get_memory_history"}},"/control/write_memory":{"post":{"operationId":"write_memory","summary":"Create or update a memory by key; previous contents are saved automatically and readable with get_memory_history. Keep entries concise and actionable: save durable facts, decisions, and useful next steps rather than raw transcripts or repeated detail, and provide a short summary. When current evidence corrects an existing fact, update its existing key instead of adding a contradictory duplicate; archive obsolete entries with archive_memories. memory_at is optional and defaults to this save's time; supply an ISO timestamp to preserve an earlier time. is_archived=true hides the entry from normal search/context; false restores it. Tier controls context priority independently of archiving. Requires memory:write or full permission; with memory:propose the write is saved as a proposal (status pending_review) that changes nothing until the owner or an editor approves it. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Create or update a memory by key; previous contents are saved automatically and readable with get_memory_history. Keep entries concise and actionable: save durable facts, decisions, and useful next steps rather than raw transcripts or repeated detail, and provide a short summary. When current evidence corrects an existing fact, update its existing key instead of adding a contradictory duplicate; archive obsolete entries with archive_memories. memory_at is optional and defaults to this save's time; supply an ISO timestamp to preserve an earlier time. is_archived=true hides the entry from normal search/context; false restores it. Tier controls context priority independently of archiving. Requires memory:write or full permission; with memory:propose the write is saved as a proposal (status pending_review) that changes nothing until the owner or an editor approves it. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"key":{"type":"string","description":"Memory key"},"value":{"description":"JSON value to store"},"memory_at":{"type":"string","format":"date-time","description":"Memory time including timezone; defaults to save time"},"is_archived":{"type":"boolean","description":"Hide from normal search; false restores an archived entry"},"tags":{"type":"array","items":{"type":"string"},"description":"Tags for categorization"},"description":{"type":"string","description":"Human-readable description"},"tier":{"type":"string","enum":["working","contextual","longterm"],"description":"Memory tier (default: contextual)"},"priority":{"type":"number","description":"Priority 1-100 (default: 50)"},"parent_key":{"type":"string","description":"Parent memory key for hierarchical organization"},"summary":{"type":"string","description":"Compact summary for context views"},"memory_type":{"type":"string","enum":["flat","hierarchical"],"description":"flat (default) or hierarchical for task graphs"},"status":{"type":"string","enum":["pending","running","completed","failed","blocked"],"description":"Task status (for hierarchical task tracking)"},"metadata":{"type":"object","description":"Free-form metadata: dependencies, thread assignment, progress. Two keys have a defined shape and are validated: metadata.episode as {location, task, outcome} makes the entry findable by where through get_memory_context, while when it happened is memory_at; and metadata.recording holds demonstration references in the same shape a skill uses, as a list of {provider, ref, fidelity, role, segments}. Everything else is stored untouched."}},"required":["playbook_id","key","value"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"write_memory"}},"/control/delete_memory":{"post":{"operationId":"delete_memory","summary":"Permanently delete a memory and its saved history. Requires memory:write or full permission. To hide an entry while retaining its content, use archive_memories instead. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Permanently delete a memory and its saved history. Requires memory:write or full permission. To hide an entry while retaining its content, use archive_memories instead. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"key":{"type":"string","description":"Memory key to delete"}},"required":["playbook_id","key"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"delete_memory"}},"/control/consolidate_memories":{"post":{"operationId":"consolidate_memories","summary":"Consolidate related memories under a new parent memory with a summary. Child rows stay readable; by default they are archived to the longterm tier rather than deleted. Requires memory:write or full permission. Use delete_memory only when a key should be destroyed, and archive_memories to move entries to longterm without creating a parent. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Consolidate related memories under a new parent memory with a summary. Child rows stay readable; by default they are archived to the longterm tier rather than deleted. Requires memory:write or full permission. Use delete_memory only when a key should be destroyed, and archive_memories to move entries to longterm without creating a parent. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"memory_keys":{"type":"array","items":{"type":"string"},"description":"Keys of memories to consolidate"},"parent_key":{"type":"string","description":"New parent memory key"},"summary":{"type":"string","description":"Summary of consolidated memories"},"parent_tags":{"type":"array","items":{"type":"string"},"description":"Tags for parent memory"},"archive_children":{"type":"boolean","description":"Move children to longterm tier","default":true}},"required":["playbook_id","memory_keys","parent_key","summary"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"consolidate_memories"}},"/control/promote_memory":{"post":{"operationId":"promote_memory","summary":"Restore a memory's visibility, promote it to a higher tier or boost its priority for active use. This tool cannot demote; use archive_memories to archive entries. Repeating the call with priority_boost increases priority again. Requires memory:write or full permission. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Restore a memory's visibility, promote it to a higher tier or boost its priority for active use. This tool cannot demote; use archive_memories to archive entries. Repeating the call with priority_boost increases priority again. Requires memory:write or full permission. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"key":{"type":"string","description":"Memory key to promote"},"target_tier":{"type":"string","enum":["working","contextual"],"description":"Target tier (cannot demote with this tool)"},"priority_boost":{"type":"number","description":"Amount to increase priority (0-50)","default":10}},"required":["playbook_id","key"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"promote_memory"}},"/control/get_memory_context":{"post":{"operationId":"get_memory_context","summary":"Get a context-optimized view of memories: full working memory, summaries for contextual, and keys only for longterm. Read-only. Filter episodic memories by where with location and task, which read the metadata.episode convention {location, task, outcome}, and by when with after and before, which bound memory_at exactly as search_memory does; entries carrying a metadata.recording come back with their recording links resolved. Use this to pack a prompt; use read_memory for one key, search_memory to filter by text or tags, and get_memory_tree for parent-child task graphs. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Get a context-optimized view of memories: full working memory, summaries for contextual, and keys only for longterm. Read-only. Filter episodic memories by where with location and task, which read the metadata.episode convention {location, task, outcome}, and by when with after and before, which bound memory_at exactly as search_memory does; entries carrying a metadata.recording come back with their recording links resolved. Use this to pack a prompt; use read_memory for one key, search_memory to filter by text or tags, and get_memory_tree for parent-child task graphs. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"include_tiers":{"type":"array","items":{"type":"string","enum":["working","contextual","longterm"]},"description":"Tiers to include (default: working, contextual)"},"max_items":{"type":"number","description":"Maximum items per tier","default":20},"expand_keys":{"type":"array","items":{"type":"string"},"description":"Keys to show full content regardless of tier"},"tags_filter":{"type":"array","items":{"type":"string"},"description":"Only include memories with these tags"},"location":{"type":"string","description":"Only episodic memories recorded at this place (metadata.episode.location)"},"task":{"type":"string","description":"Only episodic memories from this task (metadata.episode.task)"},"after":{"type":"string","format":"date-time","description":"Inclusive lower bound on memory_at, with a timezone"},"before":{"type":"string","format":"date-time","description":"Inclusive upper bound on memory_at, with a timezone"}},"required":["playbook_id"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{"type":"object","properties":{"tiers":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object"}}},"total_items":{"type":"number"}},"required":["tiers","total_items"]}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"get_memory_context"}},"/control/archive_memories":{"post":{"operationId":"archive_memories","summary":"Hide matching memories from normal search and context, retaining them in the longterm tier. When you encounter confirmed obsolete or superseded entries during normal work, archive their specific keys; update still-useful facts with write_memory instead. Age alone does not mean a memory is obsolete. Search scope='archived' to find them or read_memory by key. Filters combine as AND; older_than_hours uses memory_at. Permanent-retention entries are skipped. promote_memory restores visibility. Requires memory:write or full permission. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Hide matching memories from normal search and context, retaining them in the longterm tier. When you encounter confirmed obsolete or superseded entries during normal work, archive their specific keys; update still-useful facts with write_memory instead. Age alone does not mean a memory is obsolete. Search scope='archived' to find them or read_memory by key. Filters combine as AND; older_than_hours uses memory_at. Permanent-retention entries are skipped. promote_memory restores visibility. Requires memory:write or full permission. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"keys":{"type":"array","items":{"type":"string"},"description":"Specific keys to archive"},"older_than_hours":{"type":"number","description":"Archive memories older than X hours"},"from_tier":{"type":"string","enum":["working","contextual","longterm"],"description":"Only archive from this tier"},"tags":{"type":"array","items":{"type":"string"},"description":"Only archive memories with these tags"},"generate_summaries":{"type":"boolean","description":"Auto-generate summaries if missing","default":false}},"required":["playbook_id"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"archive_memories"}},"/control/get_memory_tree":{"post":{"operationId":"get_memory_tree","summary":"Get a hierarchical tree of memories showing parent-child relationships and per-node status. Read-only. Use this to visualize task graphs; use search_memory to filter flat lists, get_memory_context for a tiered prompt view, and read_memory for a single key's full value. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Get a hierarchical tree of memories showing parent-child relationships and per-node status. Read-only. Use this to visualize task graphs; use search_memory to filter flat lists, get_memory_context for a tiered prompt view, and read_memory for a single key's full value. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"root_key":{"type":"string","description":"Start from this key (omit for all roots)"},"max_depth":{"type":"number","description":"Maximum tree depth","default":3},"include_values":{"type":"boolean","description":"Include full values (false = summaries only)","default":false}},"required":["playbook_id"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{"type":"object","properties":{"root":{"type":["string","null"]},"tree":{"type":"array","items":{"type":"object"}},"total_nodes":{"type":"number"}},"required":["root","tree","total_nodes"]}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"get_memory_tree"}},"/control/create_task_graph":{"post":{"operationId":"create_task_graph","summary":"Create a multi-step task plan with one parent and child tasks. Example: plan_key=release, tasks=[test, deploy]. This stores a hierarchy in memory; use write_memory for an ordinary fact or one independent note. Upserts by key, so repeating the same plan_key overwrites the previous graph. Requires memory:write or full permission. Use write_memory for a single node, update_task_status to move a node through pending/running/completed, and get_memory_tree to inspect the graph. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Create a multi-step task plan with one parent and child tasks. Example: plan_key=release, tasks=[test, deploy]. This stores a hierarchy in memory; use write_memory for an ordinary fact or one independent note. Upserts by key, so repeating the same plan_key overwrites the previous graph. Requires memory:write or full permission. Use write_memory for a single node, update_task_status to move a node through pending/running/completed, and get_memory_tree to inspect the graph. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"plan_key":{"type":"string","description":"Key for the root plan memory"},"plan_summary":{"type":"string","description":"High-level summary of the entire plan"},"tasks":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"Task key (will be prefixed with plan_key/)"},"description":{"type":"string","description":"What this task does"},"value":{"type":"object","description":"Task data (instructions, params, etc.)"},"depends_on":{"type":"array","items":{"type":"string"},"description":"Keys of tasks this depends on"},"tags":{"type":"array","items":{"type":"string"},"description":"Task tags"}},"required":["key","description"]},"description":"List of subtasks to create"},"tags":{"type":"array","items":{"type":"string"},"description":"Tags for the plan"}},"required":["playbook_id","plan_key","plan_summary","tasks"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"create_task_graph"}},"/control/update_task_status":{"post":{"operationId":"update_task_status","summary":"Change an existing task to pending, running or completed. Example: mark the test task completed after its checks pass. This changes task progress, not the task's stored content; use write_memory to edit content. When all children of a parent are completed, the parent is auto-updated. Returns the current subtree state. Requires memory:write or full permission. Use create_task_graph to build the plan, not this tool. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Change an existing task to pending, running or completed. Example: mark the test task completed after its checks pass. This changes task progress, not the task's stored content; use write_memory to edit content. When all children of a parent are completed, the parent is auto-updated. Returns the current subtree state. Requires memory:write or full permission. Use create_task_graph to build the plan, not this tool. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"key":{"type":"string","description":"Task memory key to update"},"status":{"type":"string","enum":["pending","running","completed","failed","blocked"],"description":"New status"},"result":{"type":"object","description":"Task result data to store in value"},"summary":{"type":"string","description":"Updated summary with results"}},"required":["playbook_id","key","status"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"update_task_status"}},"/control/list_canvas":{"post":{"operationId":"list_canvas","summary":"List canvas documents in a workflow run. Canvas documents are collaborative markdown files that multiple agents can edit in parallel. Omit run_id to list documents across all runs. Read-only. Use read_canvas for content and get_canvas_toc for section IDs. There is no get_run; list_runs returns run records. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"List canvas documents in a workflow run. Canvas documents are collaborative markdown files that multiple agents can edit in parallel. Omit run_id to list documents across all runs. Read-only. Use read_canvas for content and get_canvas_toc for section IDs. There is no get_run; list_runs returns run records. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"run_id":{"type":"string","description":"Workflow run UUID. Omit to list documents across all runs."}},"required":["playbook_id"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{"type":"object","properties":{"documents":{"type":"array","items":{"type":"object","properties":{"run_id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"sort_order":{"type":"number"},"version":{"type":"number"},"updated_at":{"type":"string"},"metadata":{"type":"object"}}}}},"required":["documents"]}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"list_canvas"}},"/control/read_canvas":{"post":{"operationId":"read_canvas","summary":"Read a canvas document. Returns full content, sections structure, and metadata. Optionally read a specific section by ID. Read-only. Use get_canvas_toc to discover section IDs before patch_canvas_section, and list_canvas to find slugs. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Read a canvas document. Returns full content, sections structure, and metadata. Optionally read a specific section by ID. Read-only. Use get_canvas_toc to discover section IDs before patch_canvas_section, and list_canvas to find slugs. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"run_id":{"type":"string","description":"Workflow run UUID"},"slug":{"type":"string","description":"Document slug"},"section_id":{"type":"string","description":"Optional: read only this section"}},"required":["playbook_id","run_id","slug"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"read_canvas"}},"/control/write_canvas":{"post":{"operationId":"write_canvas","summary":"Create or fully replace a canvas document. Markdown headings are auto-parsed into sections for parallel editing. A replace overwrites prior content and cannot be undone. Requires canvas:write or full permission. Use patch_canvas_section for partial updates and lock_canvas_section before multi-agent edits. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Create or fully replace a canvas document. Markdown headings are auto-parsed into sections for parallel editing. A replace overwrites prior content and cannot be undone. Requires canvas:write or full permission. Use patch_canvas_section for partial updates and lock_canvas_section before multi-agent edits. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"run_id":{"type":"string","description":"Workflow run UUID"},"slug":{"type":"string","description":"URL-friendly document identifier"},"name":{"type":"string","description":"Document title"},"content":{"type":"string","description":"Full markdown content"},"metadata":{"type":"object","description":"Custom document metadata"}},"required":["playbook_id","run_id","slug","name","content"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"write_canvas"}},"/control/patch_canvas_section":{"post":{"operationId":"patch_canvas_section","summary":"Edit a specific section of a canvas document. Parallel-safe: only the targeted section is updated. Requires canvas:write or full permission. Lock the section first in multi-agent scenarios. Use write_canvas only when replacing the whole document, and get_canvas_toc to obtain section_id. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Edit a specific section of a canvas document. Parallel-safe: only the targeted section is updated. Requires canvas:write or full permission. Lock the section first in multi-agent scenarios. Use write_canvas only when replacing the whole document, and get_canvas_toc to obtain section_id. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"run_id":{"type":"string","description":"Workflow run UUID"},"slug":{"type":"string","description":"Document slug"},"section_id":{"type":"string","description":"Section ID from get_canvas_toc"},"content":{"type":"string","description":"New section content (markdown)"},"heading":{"type":"string","description":"Optional: new heading text"}},"required":["playbook_id","run_id","slug","section_id","content"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"patch_canvas_section"}},"/control/get_canvas_toc":{"post":{"operationId":"get_canvas_toc","summary":"Get the table of contents for a canvas document. Returns section IDs, headings, and levels for navigation and patch_canvas_section. Read-only. Use read_canvas for full markdown and list_canvas to discover slugs. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Get the table of contents for a canvas document. Returns section IDs, headings, and levels for navigation and patch_canvas_section. Read-only. Use read_canvas for full markdown and list_canvas to discover slugs. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"run_id":{"type":"string","description":"Workflow run UUID"},"slug":{"type":"string","description":"Document slug"}},"required":["playbook_id","run_id","slug"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"},"toc":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"heading":{"type":"string"},"level":{"type":"number"},"locked_by":{"type":["string","null"]}}}}},"required":["name","slug","toc"]}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"get_canvas_toc"}},"/control/lock_canvas_section":{"post":{"operationId":"lock_canvas_section","summary":"Lock a section for exclusive editing so other agents cannot modify it. Requires canvas:write or full permission. Always unlock_canvas_section when finished. Do not use this to edit content; pair it with patch_canvas_section. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Lock a section for exclusive editing so other agents cannot modify it. Requires canvas:write or full permission. Always unlock_canvas_section when finished. Do not use this to edit content; pair it with patch_canvas_section. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"run_id":{"type":"string","description":"Workflow run UUID"},"slug":{"type":"string","description":"Document slug"},"section_id":{"type":"string","description":"Section ID to lock"},"locked_by":{"type":"string","description":"Agent identifier"}},"required":["playbook_id","run_id","slug","section_id","locked_by"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"lock_canvas_section"}},"/control/unlock_canvas_section":{"post":{"operationId":"unlock_canvas_section","summary":"Unlock a previously locked canvas section so other agents can edit it. Requires canvas:write or full permission. Use lock_canvas_section to take the lock; this tool does not change section content. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Unlock a previously locked canvas section so other agents can edit it. Requires canvas:write or full permission. Use lock_canvas_section to take the lock; this tool does not change section content. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"run_id":{"type":"string","description":"Workflow run UUID"},"slug":{"type":"string","description":"Document slug"},"section_id":{"type":"string","description":"Section ID to unlock"}},"required":["playbook_id","run_id","slug","section_id"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"unlock_canvas_section"}},"/control/create_skill":{"post":{"operationId":"create_skill","summary":"Create a new skill for this playbook. Use this to expand capabilities. Requires full or skills:write permission; with skills:propose the skill is saved as a proposal (status pending_review) that the owner or an editor approves before it exists. Use update_skill to change an existing skill and list_skills to check for name collisions first. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Create a new skill for this playbook. Use this to expand capabilities. Requires full or skills:write permission; with skills:propose the skill is saved as a proposal (status pending_review) that the owner or an editor approves before it exists. Use update_skill to change an existing skill and list_skills to check for name collisions first. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"name":{"type":"string","description":"Agent Skills-compatible name (lowercase kebab-case, e.g. data-analyzer)"},"description":{"type":"string","description":"What the skill does and when the agent should use it"},"content":{"type":"string","description":"The SKILL.md document. Its YAML frontmatter may carry a demonstrations list of {provider, ref, fidelity, role, title, sha256, segments}, where segments are {start, end, label, comment} in seconds; the list order is the order the demonstrations are performed in. A malformed block is rejected."},"priority":{"type":"number","description":"Priority level (default 50)"}},"required":["playbook_id","name","content"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"create_skill"}},"/control/update_skill":{"post":{"operationId":"update_skill","summary":"Update an existing skill in this playbook. Requires full or skills:write permission; with skills:propose the change is saved as a proposal (status pending_review) and the skill stays unchanged until it is approved. Use create_skill to add a skill, list_skill_versions before a risky edit, and rollback_skill to restore a previous version. Do not use this to delete a skill. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Update an existing skill in this playbook. Requires full or skills:write permission; with skills:propose the change is saved as a proposal (status pending_review) and the skill stays unchanged until it is approved. Use create_skill to add a skill, list_skill_versions before a risky edit, and rollback_skill to restore a previous version. Do not use this to delete a skill. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"skill_id":{"type":"string","description":"ID or name of the skill to update"},"name":{"type":"string","description":"New name"},"description":{"type":"string","description":"New description"},"content":{"type":"string","description":"New SKILL.md document, frontmatter included. A demonstrations block in the frontmatter is validated the same way create_skill validates it."},"priority":{"type":"number","description":"New priority level"}},"required":["playbook_id","skill_id"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"update_skill"}},"/control/delete_skill":{"post":{"operationId":"delete_skill","summary":"Permanently delete a skill from this playbook. This cannot be undone except by recreating the skill. Requires full or skills:write permission. Use rollback_skill to restore a previous version instead of deleting, and update_skill to change content in place. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Permanently delete a skill from this playbook. This cannot be undone except by recreating the skill. Requires full or skills:write permission. Use rollback_skill to restore a previous version instead of deleting, and update_skill to change content in place. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"skill_id":{"type":"string","description":"ID or name of the skill to delete"}},"required":["playbook_id","skill_id"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"delete_skill"}},"/control/list_skill_versions":{"post":{"operationId":"list_skill_versions","summary":"List historical versions of a skill for auditing or rollback. Read-only. Use this before rollback_skill; use get_skill for the current definition and list_skills for every skill in the playbook. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"List historical versions of a skill for auditing or rollback. Read-only. Use this before rollback_skill; use get_skill for the current definition and list_skills for every skill in the playbook. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"skill_id":{"type":"string","description":"ID or name of the skill"},"limit":{"type":"number","description":"Max versions to return (default 10)"}},"required":["playbook_id","skill_id"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"list_skill_versions"}},"/control/rollback_skill":{"post":{"operationId":"rollback_skill","summary":"Rollback a skill to a previous version recorded by list_skill_versions. The current definition is replaced and cannot be recovered except by rolling forward to another stored version. Requires full or skills:write permission. Do not use delete_skill when you only need to revert. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Rollback a skill to a previous version recorded by list_skill_versions. The current definition is replaced and cannot be recovered except by rolling forward to another stored version. Requires full or skills:write permission. Do not use delete_skill when you only need to revert. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"version_id":{"type":"string","description":"The specific version ID from list_skill_versions to rollback to"}},"required":["playbook_id","version_id"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"rollback_skill"}},"/control/update_playbook":{"post":{"operationId":"update_playbook","summary":"Update this playbook's name, description, visibility, tags, config, singleton persona fields, or always-on project instructions. Replacement fields overwrite previous values. Handle with extreme care. Requires full or playbooks:write permission. Changing persona_system_prompt here overlaps with update_persona and create_persona; use those when only the persona should change. There is no separate get_persona: read the persona via get_playbook. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Update this playbook's name, description, visibility, tags, config, singleton persona fields, or always-on project instructions. Replacement fields overwrite previous values. Handle with extreme care. Requires full or playbooks:write permission. Changing persona_system_prompt here overlaps with update_persona and create_persona; use those when only the persona should change. There is no separate get_persona: read the persona via get_playbook. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"name":{"type":"string","description":"New playbook name"},"description":{"type":"string","description":"New playbook description"},"visibility":{"type":"string","enum":["public","private","unlisted"],"description":"New visibility"},"tags":{"type":"array","items":{"type":"string"},"description":"Replacement discovery tags"},"config":{"type":"object","description":"Replacement playbook configuration"},"persona_name":{"type":"string","description":"New persona name"},"persona_system_prompt":{"type":"string","description":"New core system instructions"},"persona_metadata":{"type":"object","description":"New metadata JSON"},"instructions":{"type":"string","description":"New always-on project instructions (the AGENTS.md / CLAUDE.md content). Kept separate from the persona: the persona is who the agent is, these are the rules of this project."}},"required":["playbook_id"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"update_playbook"}},"/control/list_mcp_servers":{"post":{"operationId":"list_mcp_servers","summary":"List the MCP and OpenAPI servers connected to this playbook, including transport metadata and discovered capability counts. Read-only. There is no get_mcp_server; this list is the detail view. Do not use this to invoke a connected tool—use call_connected_tool. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"List the MCP and OpenAPI servers connected to this playbook, including transport metadata and discovered capability counts. Read-only. There is no get_mcp_server; this list is the detail view. Do not use this to invoke a connected tool—use call_connected_tool. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"}},"required":["playbook_id"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"list_mcp_servers"}},"/control/call_connected_tool":{"post":{"operationId":"call_connected_tool","summary":"Call a tool on one of this playbook's connected MCP or OpenAPI servers. Arguments are forwarded as-is and the result mirrors the connected tool, including any side effects that tool has in the outside world. Requires tools:call or full permission. Use list_mcp_servers to discover server_id and tool_name. Do not use this to manage connection records; use create_mcp_server, update_mcp_server, or delete_mcp_server. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Call a tool on one of this playbook's connected MCP or OpenAPI servers. Arguments are forwarded as-is and the result mirrors the connected tool, including any side effects that tool has in the outside world. Requires tools:call or full permission. Use list_mcp_servers to discover server_id and tool_name. Do not use this to manage connection records; use create_mcp_server, update_mcp_server, or delete_mcp_server. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"server_id":{"type":"string","description":"Connected server UUID or name"},"tool_name":{"type":"string","description":"Tool name exposed by the connected server"},"arguments":{"type":"object","description":"Arguments passed to the connected tool"}},"required":["playbook_id","server_id","tool_name"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"call_connected_tool"}},"/control/create_mcp_server":{"post":{"operationId":"create_mcp_server","summary":"Connect an MCP or OpenAPI server to this playbook by storing its transport configuration. This writes playbook state; it does not by itself invoke remote tools. Requires playbooks:write or full permission. Use call_connected_tool to invoke a discovered tool, and list_mcp_servers to inspect connections. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Connect an MCP or OpenAPI server to this playbook by storing its transport configuration. This writes playbook state; it does not by itself invoke remote tools. Requires playbooks:write or full permission. Use call_connected_tool to invoke a discovered tool, and list_mcp_servers to inspect connections. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"name":{"type":"string","description":"Display name of the connected server"},"description":{"type":"string","description":"What this server provides"},"tools":{"type":"array","items":{"type":"object"},"description":"Known tool definitions, if already discovered"},"resources":{"type":"array","items":{"type":"object"},"description":"Known resource definitions, if already discovered"},"transport_type":{"type":"string","enum":["stdio","http","sse","openapi"],"description":"Connection type (default: http)"},"transport_config":{"type":"object","description":"Transport-specific configuration. Do not put plaintext secrets here."}},"required":["playbook_id","name"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"create_mcp_server"}},"/control/update_mcp_server":{"post":{"operationId":"update_mcp_server","summary":"Update a connected MCP or OpenAPI server's stored name, description, tools, resources, or transport. Requires playbooks:write or full permission. Use call_connected_tool to invoke a tool, and delete_mcp_server to disconnect. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Update a connected MCP or OpenAPI server's stored name, description, tools, resources, or transport. Requires playbooks:write or full permission. Use call_connected_tool to invoke a tool, and delete_mcp_server to disconnect. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"server_id":{"type":"string","description":"Connected server UUID"},"name":{"type":"string","description":"New display name"},"description":{"type":"string","description":"New description"},"tools":{"type":"array","items":{"type":"object"},"description":"Updated tool definitions"},"resources":{"type":"array","items":{"type":"object"},"description":"Updated resource definitions"},"transport_type":{"type":"string","enum":["stdio","http","sse","openapi"],"description":"Connection type"},"transport_config":{"type":"object","description":"Updated transport-specific configuration"}},"required":["playbook_id","server_id"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"update_mcp_server"}},"/control/delete_mcp_server":{"post":{"operationId":"delete_mcp_server","summary":"Disconnect an MCP or OpenAPI server from this playbook. The remote server is not shut down; only this playbook's connection record is removed. Requires playbooks:write or full permission. Use update_mcp_server to change configuration without disconnecting. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Disconnect an MCP or OpenAPI server from this playbook. The remote server is not shut down; only this playbook's connection record is removed. Requires playbooks:write or full permission. Use update_mcp_server to change configuration without disconnecting. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"server_id":{"type":"string","description":"Connected server UUID"}},"required":["playbook_id","server_id"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"delete_mcp_server"}},"/control/list_runs":{"post":{"operationId":"list_runs","summary":"List workflow runs for this playbook. Runs isolate canvas artifacts and execution context. Read-only. There is no get_run; this list returns the run records. Use create_run to start isolated canvas context and list_canvas to see documents in a run. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"List workflow runs for this playbook. Runs isolate canvas artifacts and execution context. Read-only. There is no get_run; this list returns the run records. Use create_run to start isolated canvas context and list_canvas to see documents in a run. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"}},"required":["playbook_id"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"list_runs"}},"/control/create_run":{"post":{"operationId":"create_run","summary":"Create a workflow run so this playbook can be applied immediately with isolated context and canvas artifacts. Requires canvas:write or full permission. Use list_runs to inspect existing runs (there is no get_run) and update_run to change status. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Create a workflow run so this playbook can be applied immediately with isolated context and canvas artifacts. Requires canvas:write or full permission. Use list_runs to inspect existing runs (there is no get_run) and update_run to change status. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"name":{"type":"string","description":"Human-readable run name"},"context":{"type":"object","description":"Initial execution context"}},"required":["playbook_id","name"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"create_run"}},"/control/update_run":{"post":{"operationId":"update_run","summary":"Update a workflow run's name, status, or context. Requires canvas:write or full permission. Use list_runs to find run_id (there is no get_run) and delete_run to remove the run and its canvas artifacts. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Update a workflow run's name, status, or context. Requires canvas:write or full permission. Use list_runs to find run_id (there is no get_run) and delete_run to remove the run and its canvas artifacts. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"run_id":{"type":"string","description":"Workflow run UUID"},"name":{"type":"string","description":"New run name"},"status":{"type":"string","enum":["active","completed","archived"],"description":"New run status"},"context":{"type":"object","description":"Replacement execution context"}},"required":["playbook_id","run_id"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"update_run"}},"/control/delete_run":{"post":{"operationId":"delete_run","summary":"Permanently delete a workflow run and its isolated canvas artifacts. This cannot be undone. Requires canvas:write or full permission. Use update_run with status=archived to keep artifacts, and delete_playbook only when the whole playbook should go. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Permanently delete a workflow run and its isolated canvas artifacts. This cannot be undone. Requires canvas:write or full permission. Use update_run with status=archived to keep artifacts, and delete_playbook only when the whole playbook should go. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"run_id":{"type":"string","description":"Workflow run UUID"}},"required":["playbook_id","run_id"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"delete_run"}},"/control/list_secrets":{"post":{"operationId":"list_secrets","summary":"List all secret names and metadata in this playbook. Never returns values. Includes allow_api_key_reveal, allowed_hosts and capabilities with reveal/proxy availability and reasons. Reveal is optional and separate from proxy use; use reveal_secret only when the user needs raw access. Requires secrets:read or full permission. Use use_secret to make an authenticated HTTP request, store_secret to add a value, and rotate_secret to replace one. Do not use this tool expecting plaintext credentials. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"List all secret names and metadata in this playbook. Never returns values. Includes allow_api_key_reveal, allowed_hosts and capabilities with reveal/proxy availability and reasons. Reveal is optional and separate from proxy use; use reveal_secret only when the user needs raw access. Requires secrets:read or full permission. Use use_secret to make an authenticated HTTP request, store_secret to add a value, and rotate_secret to replace one. Do not use this tool expecting plaintext credentials. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"category":{"type":"string","enum":["api_key","password","token","certificate","connection_string","general"],"description":"Filter by category"}},"required":["playbook_id"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{"type":"object","properties":{"secrets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"category":{"type":"string"},"allow_api_key_reveal":{"type":"boolean"},"allowed_hosts":{"type":["array","null"],"items":{"type":"string"}},"capabilities":{"type":"object"},"rotated_at":{"type":["string","null"]},"expires_at":{"type":["string","null"]},"last_used_at":{"type":["string","null"]},"use_count":{"type":"number"},"created_at":{"type":"string"},"updated_at":{"type":"string"}}}}},"required":["secrets"]}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"list_secrets"}},"/control/get_secret_status":{"post":{"operationId":"get_secret_status","summary":"Check one named secret without decrypting it. Requires secrets:read or full and access to this playbook. Reports exists=false only after authorization; existing secrets report reveal/proxy policy, expiry, and next steps. Permission or lookup failures mean existence is unknown. Use this to ask the user whether to confirm the name, add a missing credential, or enable optional reveal. Never enable reveal automatically. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Check one named secret without decrypting it. Requires secrets:read or full and access to this playbook. Reports exists=false only after authorization; existing secrets report reveal/proxy policy, expiry, and next steps. Permission or lookup failures mean existence is unknown. Use this to ask the user whether to confirm the name, add a missing credential, or enable optional reveal. Never enable reveal automatically. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"secret_name":{"type":"string","description":"Exact vault secret name"}},"required":["playbook_id","secret_name"],"additionalProperties":false}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"exists":{"type":"boolean"},"allow_api_key_reveal":{"type":"boolean"},"expires_at":{"type":["string","null"]},"capabilities":{"type":"object"},"reason":{"type":"string"},"next_steps":{"type":"array","items":{"type":"string"}}},"required":["name","exists"]}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"get_secret_status"}},"/control/reveal_secret":{"post":{"operationId":"reveal_secret","summary":"Return a raw secret value only when the user explicitly needs raw access. Requires secrets:read or full, per-secret allow_api_key_reveal=true, an unexpired secret, and a successful audit write. These conditions also apply to owner OAuth connections through MCP. Prefer use_secret/use_secret_write for server-side header injection. Inspect list_secrets capabilities first to explain a refusal without reading a value. Never enable reveal automatically or include revealed values in chat, logs, files or persistent memory. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Return a raw secret value only when the user explicitly needs raw access. Requires secrets:read or full, per-secret allow_api_key_reveal=true, an unexpired secret, and a successful audit write. These conditions also apply to owner OAuth connections through MCP. Prefer use_secret/use_secret_write for server-side header injection. Inspect list_secrets capabilities first to explain a refusal without reading a value. Never enable reveal automatically or include revealed values in chat, logs, files or persistent memory. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"secret_name":{"type":"string","description":"Name of the opted-in secret"}},"required":["playbook_id","secret_name"],"additionalProperties":false}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"reveal_secret"}},"/control/use_secret":{"post":{"operationId":"use_secret","summary":"Send a GET or HEAD request with a secret injected as a header, and return the response. The secret value is never returned to the agent — it is decrypted and used server-side only. Buffered JSON responses are limited to 8 MiB; paginate larger requests or use the direct REST secrets proxy with response_mode=stream. Reads the remote API; it cannot change anything there, because only safe methods are accepted. The URL is chosen by the caller, so the target is whichever API the secret belongs to — see that API's own documentation for paths. Requires secrets:read or full permission. Example: use_secret({secret_name: 'OPENAI_API_KEY', url: 'https://api.openai.com/v1/models'}) sends GET with 'Authorization: Bearer <key>'. Use list_secrets to discover names, use_secret_write to send POST/PUT/PATCH/DELETE, and store_secret or rotate_secret to change a stored value. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Send a GET or HEAD request with a secret injected as a header, and return the response. The secret value is never returned to the agent — it is decrypted and used server-side only. Buffered JSON responses are limited to 8 MiB; paginate larger requests or use the direct REST secrets proxy with response_mode=stream. Reads the remote API; it cannot change anything there, because only safe methods are accepted. The URL is chosen by the caller, so the target is whichever API the secret belongs to — see that API's own documentation for paths. Requires secrets:read or full permission. Example: use_secret({secret_name: 'OPENAI_API_KEY', url: 'https://api.openai.com/v1/models'}) sends GET with 'Authorization: Bearer <key>'. Use list_secrets to discover names, use_secret_write to send POST/PUT/PATCH/DELETE, and store_secret or rotate_secret to change a stored value. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"secret_name":{"type":"string","description":"Name of the secret to use (e.g. OPENAI_API_KEY)"},"url":{"type":"string","description":"The URL to send the HTTP request to"},"method":{"type":"string","enum":["GET","HEAD"],"description":"HTTP method (default: GET). For POST/PUT/PATCH/DELETE use use_secret_write."},"header_name":{"type":"string","description":"Header name to inject the secret into (default: Authorization)"},"header_prefix":{"type":"string","description":"Prefix before the secret value (default: 'Bearer '). Use empty string for raw value."},"extra_headers":{"type":"object","description":"Additional headers (e.g. {\"Accept\": \"application/json\"})"},"timeout_ms":{"type":"number","description":"Request timeout in milliseconds (default: 30000, max: 60000)"}},"required":["playbook_id","secret_name","url"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"use_secret"}},"/control/use_secret_write":{"post":{"operationId":"use_secret_write","summary":"Send a POST, PUT, PATCH or DELETE request with a secret injected as a header, and return the response. The secret value is never returned to the agent — it is decrypted and used server-side only. Buffered JSON responses are limited to 8 MiB; paginate larger requests or use the direct REST secrets proxy with response_mode=stream. This changes state in the remote API and cannot be undone from here. The URL is chosen by the caller, so the target is whichever API the secret belongs to — see that API's own documentation for paths and payloads. Requires secrets:read or full permission. Use use_secret for GET and HEAD, list_secrets to discover names, and store_secret or rotate_secret to change a stored value rather than send a request. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Send a POST, PUT, PATCH or DELETE request with a secret injected as a header, and return the response. The secret value is never returned to the agent — it is decrypted and used server-side only. Buffered JSON responses are limited to 8 MiB; paginate larger requests or use the direct REST secrets proxy with response_mode=stream. This changes state in the remote API and cannot be undone from here. The URL is chosen by the caller, so the target is whichever API the secret belongs to — see that API's own documentation for paths and payloads. Requires secrets:read or full permission. Use use_secret for GET and HEAD, list_secrets to discover names, and store_secret or rotate_secret to change a stored value rather than send a request. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"secret_name":{"type":"string","description":"Name of the secret to use (e.g. DEPLOY_API_KEY)"},"url":{"type":"string","description":"The URL to send the HTTP request to"},"method":{"type":"string","enum":["POST","PUT","PATCH","DELETE"],"description":"HTTP method (default: POST). For GET/HEAD use use_secret."},"header_name":{"type":"string","description":"Header name to inject the secret into (default: Authorization)"},"header_prefix":{"type":"string","description":"Prefix before the secret value (default: 'Bearer '). Use empty string for raw value."},"body":{"type":"object","description":"JSON request body (for POST/PUT/PATCH)"},"extra_headers":{"type":"object","description":"Additional headers (e.g. {\"Content-Type\": \"application/json\"})"},"timeout_ms":{"type":"number","description":"Request timeout in milliseconds (default: 30000, max: 60000)"}},"required":["playbook_id","secret_name","url"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"use_secret_write"}},"/control/store_secret":{"post":{"operationId":"store_secret","summary":"Store a new encrypted secret. The value is encrypted with AES-256-GCM using a per-user derived key and never stored or returned in plaintext. Requires secrets:write or full permission. Use rotate_secret to replace an existing value and list_secrets to confirm the name. Do not use this to send an authenticated request; use use_secret. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Store a new encrypted secret. The value is encrypted with AES-256-GCM using a per-user derived key and never stored or returned in plaintext. Requires secrets:write or full permission. Use rotate_secret to replace an existing value and list_secrets to confirm the name. Do not use this to send an authenticated request; use use_secret. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"name":{"type":"string","description":"Secret name (letters, numbers, hyphens, underscores)"},"value":{"type":"string","description":"The secret value to encrypt and store"},"description":{"type":"string","description":"What this secret is used for"},"category":{"type":"string","enum":["api_key","password","token","certificate","connection_string","general"],"description":"Secret type (default: general)"},"expires_at":{"type":"string","description":"ISO 8601 expiration date (optional)"}},"required":["playbook_id","name","value"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"store_secret"}},"/control/rotate_secret":{"post":{"operationId":"rotate_secret","summary":"Rotate an existing secret with a new value. The old value is permanently replaced and cannot be recovered. The expiry is kept unless you pass expires_at: a date sets a new one, null removes it — which is how an expired secret, refused by use_secret, becomes usable again. Requires secrets:write or full permission. Use store_secret to create a name that does not exist yet, and delete_secret to remove the secret entirely. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Rotate an existing secret with a new value. The old value is permanently replaced and cannot be recovered. The expiry is kept unless you pass expires_at: a date sets a new one, null removes it — which is how an expired secret, refused by use_secret, becomes usable again. Requires secrets:write or full permission. Use store_secret to create a name that does not exist yet, and delete_secret to remove the secret entirely. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"name":{"type":"string","description":"Secret name to rotate"},"value":{"type":"string","description":"New secret value"},"expires_at":{"type":["string","null"],"format":"date-time","description":"New expiry with a timezone, or null to remove it. Omit to keep the current one."}},"required":["playbook_id","name","value"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"rotate_secret"}},"/control/delete_secret":{"post":{"operationId":"delete_secret","summary":"Permanently delete a secret. Cannot be undone. Requires secrets:write or full permission. Use rotate_secret to replace the value without removing the name, and list_secrets to confirm the name first. This does not revoke the credential at the upstream provider. Pass playbook_id as the UUID or GUID of the playbook this call should target.","description":"Permanently delete a secret. Cannot be undone. Requires secrets:write or full permission. Use rotate_secret to replace the value without removing the name, and list_secrets to confirm the name first. This does not revoke the credential at the upstream provider. Pass playbook_id as the UUID or GUID of the playbook this call should target.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"playbook_id":{"type":"string","description":"UUID or GUID of the target playbook"},"name":{"type":"string","description":"Secret name to delete"}},"required":["playbook_id","name"]}}}},"responses":{"200":{"description":"Operation completed","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid operation arguments","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Insufficient permission or playbook access","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Playbook or resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}},"422":{"description":"Legacy operation error status; data.reason distinguishes permission, reveal policy, expiry, missing secrets, database, decryption and audit failures","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"integer"},"data":{"type":"object","properties":{"catalog_revision":{"type":"string"},"phase":{"type":"string"},"reason":{"type":"string","description":"Machine-readable cause; distinguishes missing secrets, disabled reveal, permission and server failures"},"existence":{"type":"string","enum":["unknown"],"description":"Permission or lookup failures do not establish secret absence"},"next_steps":{"type":"array","items":{"type":"string"}}}}}}}}}},"x-mcp-tool":"delete_secret"}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"User API Key starting with apb_live_"}},"schemas":{"Playbook":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"guid":{"type":"string","description":"Public identifier for the playbook"},"name":{"type":"string"},"description":{"type":"string"},"visibility":{"type":"string"},"persona_count":{"type":"integer"},"skill_count":{"type":"integer"},"mcp_server_count":{"type":"integer"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"Memory":{"type":"object","description":"A memory entry storing persistent data with optional tags and description","properties":{"key":{"type":"string","description":"Unique key identifier"},"value":{"description":"Stored JSON value"},"memory_at":{"type":"string","format":"date-time"},"is_archived":{"type":"boolean"},"memory_id":{"type":"string","format":"uuid","description":"Original entry ID in search results"},"history_id":{"type":"string","nullable":true,"description":"Revision ID in search results; null for current entries"},"tags":{"type":"array","items":{"type":"string"},"description":"Tags for categorization and search"},"description":{"type":"string","description":"Human-readable description of this memory"},"updated_at":{"type":"string","format":"date-time"}}},"Skill":{"type":"object","description":"A skill defines a capability or rule for solving tasks","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string","description":"Agent Skills-compatible name (lowercase kebab-case)"},"description":{"type":"string","description":"What this skill does"},"definition":{"type":"object","description":"Skill definition with parameters schema"},"examples":{"type":"array","description":"Example usages"},"priority":{"type":"integer","description":"Priority (higher = more important)"}}},"Persona":{"type":"object","description":"An AI personality with a system prompt","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"system_prompt":{"type":"string"},"metadata":{"type":"object"}}}}}}