Run a natural language task on a session
| Parameter | Type | Description |
|---|---|---|
session_id | string | The session ID (must be in ready status) |
| Field | Type | Required | Description |
|---|---|---|---|
task | string | Yes | Plain English instruction for the AI agent |
max_steps | integer | No | Maximum actions the agent can take (1-200, default 20) |
| Field | Type | Description |
|---|---|---|
status | string | "completed" or "failed" |
summary | string | Human-readable description of what happened |
steps | array | List of actions the agent took |
| Code | Meaning |
|---|---|
| 402 | Trial expired — subscribe to continue |
| 404 | Session not found |
| 409 | Session not ready (still booting) |