agent_run
Run tasks via an autonomous agent that plans locally, executes tools, and falls back to a stronger model on low confidence or failure. Control execution with iteration and time limits.
Instructions
Run a task through the Needle agent runtime: plans with the local model, executes tools via the workflow orchestrator, escalates to OpenRouter only on low confidence or failure. Requires MITOSIS_AGENT_ENABLED=true and a fetched engine (npm run needle:fetch).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | The task or objective for the agent to accomplish | |
| maxToolCalls | No | Maximum tool executions per run | |
| maxIterations | No | Maximum agent decide-act-observe iterations | |
| maxExecutionMs | No | Maximum run wall-clock time in milliseconds |