Delegate a task and wait
ask_agentDelegate a self-contained task or question to another installed AI agent and receive its answer in one synchronous call, passing a project path when the work involves local code.
Instructions
Hand a task to another AI agent and wait for its answer. One call does the whole thing. The agent starts fresh with no knowledge of this conversation and cannot see your files unless you point it at them, so make the prompt self-contained and pass workingDirectory when the task is about code in a project. If "succeeded" is false, read "diagnostics". For a job long enough to outlast this request, use start_task.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | Yes | Which agent to use, exactly as list_agents names it, e.g. "gemini". | |
| prompt | Yes | The full self-contained task or question for that agent. | |
| workingDirectory | No | Absolute path to run the agent in, so it can read the project files. |