Run Task
Agent
Run Task
Run a natural language task on a session
POST
Run Task
Path parameters
| Parameter | Type | Description |
|---|---|---|
session_id | string | The session ID (must be in ready status) |
Request body
| 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) |
Response
Response fields
| Field | Type | Description |
|---|---|---|
status | string | "completed" or "failed" |
summary | string | Human-readable description of what happened |
steps | array | List of actions the agent took |
Error responses
| Code | Meaning |
|---|---|
| 402 | Trial expired — subscribe to continue |
| 404 | Session not found |
| 409 | Session not ready (still booting) |
Tips
- DuckDuckGo over Google — Google blocks cloud IPs with reCAPTCHA. Use DuckDuckGo for web searches.
- One task at a time — each session runs one agent task at a time. Wait for completion before sending the next.
- Fresh sessions — each session starts as a clean Android install. Apps and state don’t persist between sessions.
