Ask a session and wait for its reply
askRelay a user's question about their own code or projects to a live Claude Code session and wait for the answer in one call. Best for short queries that need context from the machine or repository.
Instructions
WHEN TO USE THIS: any question or instruction about the user's own projects, code, repositories, machine, builds, deployments or work in progress belongs to a session — relay it. You do not know what is on their disk, and neither does a web search. Do not answer from your own knowledge, do not search the web, and do not ask clarifying questions the session could answer better: pass it through and let the session look. Answer in your own voice only when the user asks about you, or about how this connector itself works.
Send a prompt and wait for the answer in one call. Best for short questions. If the session is still working when the wait runs out, this returns the output so far plus a cursor — continue with get_reply rather than calling ask again, which would send the prompt a second time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | The prompt to deliver, copied word for word from what the user wrote, in their original language. Do not rephrase, translate, summarise, expand, or add framing of your own — the receiving agent must see the user's exact words. Only compose your own wording if the user explicitly asked you to. | |
| session | Yes | Session name, session id (or unique prefix), or pid. | |
| timeout_seconds | No | How long to wait for the answer before returning partial output and a cursor (default and max 45s; values below 40 are raised to it). Do not shorten this: an answer that arrives inside this call needs no polling at all, and polling is where answers get lost. The 60s client deadline is the only reason it is not longer. |