prompt | str | No | "" | Natural-language input. |
existing_task_id | str | No | None | Continue an existing task. Reuses memory thread. |
file_urls | list[str] | No | [] | URLs of files to attach (PDFs, images, CSVs, …). |
user_details | User | No | None | End-user context (id, email, timezone) for memory and connector auth. |
agent_version | str | No | None | Pin to a specific agent version. |
tool_call_payload_extension | dict | No | None | Extra fields merged into every tool-call payload. |
source | str | No | "sdk" | Origin tag ("webhook", "slack", …). |
worker_id | str | No | None | Pin execution to a specific worker. |
run_locally | bool | No | False | Mark the task as locally executed (skips cloud dispatch). |
output_format | OutputFormat | No | None | Text, Markdown, Json, or Voice. |
output_schema | dict | No | None | JSON schema (paired with OutputFormat.Json). |
events_streaming | bool | No | False | Enables SSE streaming via task.aevents(). |
additional_context | str | No | None | Extra context appended to the system prompt. |
instructions_override | str | No | None | Extra instructions appended for this run only. |
test_run_node_id | str | No | None | (Internal) Workflow node to execute in test mode. |
user_oidc_token | str | No | None | OIDC token for connector pre-auth. |
expected_output | str | No | None | Description of expected output shape. |
mcp_servers | list[MCPServerDetails] | No | [] | Per-task MCP servers (in addition to the agent’s configured servers). |
triggering_agent_id | str | No | None | ID of the agent that triggered this task (for sub-agent tracking). |
title | str | No | None | Display title in the dashboard. |
think_mode | ThinkMode | No | Default | Default or Harder. Toggles extended reasoning. |
disable_attachment_injection | bool | No | False | Skip auto-injecting human-readable file content into the prompt. |
return_metrics | bool | No | False | Return metrics in the task. Only valid for Workflow → Agent invocation. |
user_tokens | dict | No | None | Pre-computed user tokens injected for MCP auth. |