AgentStack execute
agentstack.executeRuns one or more backend actions in a single request across auth, data, payments, CRM, hosting, RAG, bots, scheduling, and automation, with batch controls for async jobs and error handling.
Instructions
AUTH-FIRST: auth.get_profile before mutate. IDE: Connect; no auth.login in chat. Unauth: auth_choices; skip work_next. Mutate: OAuth/PAT (mcp:execute). Anon: bootstrap_ack+create_project_anonymous. Spine: plan_get->work_next->plan_claim->plan_execute. WG: work_next->plan_claim->plan_execute; follow packet.next_action. Prompts: session_setup, execute_budget.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"steps": "<steps>"
},
"name": "agentstack.execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | Yes | Steps; one heavy LLM per sync execute. | |
| context | No | session.v1; project_id required. | |
| options | No | batch.v1 controls. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | False on total failure. | |
| job_id | No | Poll id. | |
| timings | No | Batch phase ms (hydrate_ms, preflight_ms, …). | |
| agent_os | No | Follow next_step. | |
| recovery | No | Next action when blocked. | |
| trace_id | No | Support trace. | |
| error_code | No | Stable failure code. | |
| execution_mode | No | async when queued. | |
| response_bytes | No | Approximate serialized JSON size of the batch root. | |
| partial_success | No | Some steps failed. |