agentstack.execute
Mandatory session order: authenticate -> session probe auth.get_profile (alias auth.me) -> select/create project -> set context.project_id on every batch -> domain work. Playbook GET /mcp/prompts/get?name=agentstack_session_setup (recipe mcp_session_setup). Execute AgentStack operations as steps: id, action, params. Sync POST /mcp is lane mcp_batch (60000 ms) for the whole batch - not an RBAC cap. Heavy LLM actions (bots.simulate, knowledge.playground, agents.run with wait=true) : at most one per sync execute. A single heavy step is widened to ai_stream (180000 ms). Cheap discovery/list/get actions may batch (max 50 steps). Large suites: sequential executes, or options.async=true then poll discovery.job_status (REST GET /mcp/jobs/{{job_id}}). Catalog: GET /mcp/actions (see execute_budget). Cite one number: catalog_actions_public from GET /mcp/actions/summary. GET /mcp/health tools_count is the registry size, not the action catalog. There is one execute tool (agentstack.execute); do not quote tools_count as 'N tools'. Domain count is whatever that catalog lists - do not reuse a stale public-domain number. Do not invent rules.* or webhooks.* (prefer logic.* and integrations.*).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | Yes | Ordered steps. Cheap list/get may batch. At most one heavy LLM action (bots.simulate, knowledge.playground, …) per sync execute. | |
| context | No | ||
| options | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| success | No | ||
| trace_id | No | ||
| error_code | No |