call_agent_async
Launch agent tasks asynchronously in the background, get an immediate task ID, and fetch results later when needed without blocking your workflow.
Instructions
Start agent task in background (NON-BLOCKING). Returns task_id immediately.
✅ Recommended for explore/researcher
Workflow:
call_agent_async→ get task_id instantlyContinue your work (read files, think, etc.)
get_agent_result(task_id, block=true)when ready
Why async is better:
No wasted waiting time
Can launch multiple searches in parallel
Check results when YOU need them
Parallel search pattern:
call_agent_async(explore, "Find X") → task_1
call_agent_async(researcher, "Find Y") → task_2
... do other work ...
get_agent_result(task_1, block=false)
get_agent_result(task_2, block=false)
... do other work ...
get_agent_result(task_1, block=true)
get_agent_result(task_2, block=true)Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | Working directory for the agent | |
| agent | Yes | The agent to use: advisor | researcher | explore | frontend-ui-ux-engineer | document-writer | |
| prompt | Yes | The prompt/task for the agent | |
| context | No | Additional context |