{"operations":[{"name":"whoami","summary":"Who you are, who you report to, and what you can do without approval.","risk":"read","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}},{"name":"principals.list","summary":"The directory: every human and agent in the workspace, with reporting lines.","risk":"read","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"kind":{"type":"string","enum":["human","agent"]},"reports_to":{"description":"Only direct reports of this principal.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"additionalProperties":false}},{"name":"agents.create","summary":"Create an agent. It reports to you unless you name someone else, and starts at trust level 'act'.","risk":"write","agent_risk":"admin","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"handle":{"type":"string","pattern":"^[a-z0-9][a-z0-9._-]{0,62}$"},"description":{"description":"What this agent is for.","type":"string","maxLength":2000},"reports_to":{"description":"Human or agent it reports to. Defaults to you.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"trust":{"type":"string","enum":["observe","propose","act","trusted"]},"daily_op_limit":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["name","handle"],"additionalProperties":false}},{"name":"agents.update","summary":"Change an agent's name, description, trust level, daily limit or who it reports to.","risk":"write","agent_risk":"admin","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","maxLength":2000},"trust":{"type":"string","enum":["observe","propose","act","trusted"]},"daily_op_limit":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"reports_to":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id"],"additionalProperties":false}},{"name":"agents.suspend","summary":"Kill switch. Immediately stops an agent from doing anything; its keys stop working.","risk":"write","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id"],"additionalProperties":false}},{"name":"agents.resume","summary":"Lift a suspension.","risk":"write","agent_risk":"admin","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id"],"additionalProperties":false}},{"name":"keys.create","summary":"Create an API key for yourself or an agent you manage. The secret is shown once.","risk":"write","agent_risk":"admin","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"principal_id":{"description":"Defaults to you.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":120},"scopes":{"description":"Operation patterns such as tasks.* or inbox.list. Omit for everything the principal may do.","minItems":1,"type":"array","items":{"type":"string","pattern":"^(\\*|[a-z_]+(\\.[a-z_]+)*(\\.\\*)?)$"}},"expires_in_days":{"type":"integer","minimum":1,"maximum":3650}},"required":["name"],"additionalProperties":false}},{"name":"keys.list","summary":"List API keys for yourself or an agent you manage. Secrets are never returned.","risk":"read","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"principal_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"additionalProperties":false}},{"name":"keys.revoke","summary":"Revoke an API key immediately.","risk":"write","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id"],"additionalProperties":false}},{"name":"tasks.create","summary":"Create a task, optionally assigned to a human or agent. Use parent_id to delegate part of a task.","risk":"write","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":300},"body":{"type":"string","maxLength":50000},"assignee_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"parent_id":{"description":"Makes this a subtask.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["title"],"additionalProperties":false}},{"name":"tasks.list","summary":"List tasks, filtered by assignee, status, creator or parent.","risk":"read","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"assignee_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"created_by":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"parent_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["open","in_progress","needs_input","done","cancelled"]},"limit":{"default":50,"type":"integer","minimum":1,"maximum":200}},"required":["limit"],"additionalProperties":false}},{"name":"tasks.get","summary":"One task in full, with its subtasks.","risk":"read","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id"],"additionalProperties":false}},{"name":"tasks.assign","summary":"Assign a task to a human or agent, or pass null to unassign.","risk":"write","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"assignee_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["id","assignee_id"],"additionalProperties":false}},{"name":"tasks.claim","summary":"Start work on a task that is yours or unassigned. Takes a 15 minute lease; tasks.update renews it.","risk":"write","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id"],"additionalProperties":false}},{"name":"tasks.update","summary":"Report progress: set status (needs_input to ask the humans, done to finish), record a result, or edit the task.","risk":"write","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["open","in_progress","needs_input","done","cancelled"]},"title":{"type":"string","minLength":1,"maxLength":300},"body":{"type":"string","maxLength":50000},"result":{"description":"Outcome, or the question you need answered.","type":"string","maxLength":50000}},"required":["id"],"additionalProperties":false}},{"name":"approvals.list","summary":"Held requests. Humans see what is waiting on them (admins see all); agents see their own requests.","risk":"read","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"default":"pending","type":"string","enum":["pending","approved","rejected"]},"limit":{"default":50,"type":"integer","minimum":1,"maximum":200}},"required":["status","limit"],"additionalProperties":false}},{"name":"approvals.decide","summary":"Approve or reject a held request. Approving runs the operation exactly as it was requested.","risk":"write","human_only":true,"input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"decision":{"type":"string","enum":["approve","reject"]},"reason":{"type":"string","maxLength":2000}},"required":["id","decision"],"additionalProperties":false}},{"name":"inbox.list","summary":"Everything waiting on you: tasks assigned to you, approvals to decide, and answers to your own requests.","risk":"read","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}},{"name":"events.list","summary":"The audit log. Admins see everything; others see their own actions and those of agents under them.","risk":"read","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"actor_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"operation":{"type":"string"},"outcome":{"type":"string","enum":["ok","pending_approval","denied","error"]},"before":{"description":"Return events with an id below this one.","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"default":100,"type":"integer","minimum":1,"maximum":500}},"required":["limit"],"additionalProperties":false}},{"name":"usage.summary","summary":"Operations per principal over recent days. This is the meter usage billing will read.","risk":"admin","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"days":{"default":30,"type":"integer","minimum":1,"maximum":90}},"required":["days"],"additionalProperties":false}},{"name":"invites.create","summary":"Invite a person to the workspace by email. They join by opening the link that is mailed to them.","risk":"admin","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"email":{"type":"string","maxLength":320,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"name":{"type":"string","minLength":1,"maxLength":120},"handle":{"description":"Defaults to the part of the address before the @.","type":"string","pattern":"^[a-z0-9][a-z0-9._-]{0,62}$"},"role":{"default":"member","type":"string","enum":["member","admin"]}},"required":["email","name","role"],"additionalProperties":false}},{"name":"invites.list","summary":"Invitations that have been sent and whether they were accepted. Admins only.","risk":"read","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"pending_only":{"default":false,"type":"boolean"}},"required":["pending_only"],"additionalProperties":false}},{"name":"invites.revoke","summary":"Cancel an invitation that has not been accepted.","risk":"admin","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id"],"additionalProperties":false}},{"name":"humans.update","summary":"Change a person's role, or suspend or restore their access. Agents that report to them keep running.","risk":"admin","human_only":true,"input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"role":{"type":"string","enum":["owner","admin","member"]},"status":{"type":"string","enum":["active","suspended"]}},"required":["id"],"additionalProperties":false}}]}