Wait for a text reply
wait_for_replyWait for the human to send something back to this session — texts and
voicemail transcripts arrive here. Long-polls up to wait_s (max 30s);
returns {events, cursor, session_token}. Pass the returned cursor next
time to only see new events. An empty events list just means nothing yet
— poll again if you are still waiting. To listen before you have texted or
called, pass to (and from_label) instead of a session_token: this
session's thread then shows on their phone with a call button, and nothing
is sent or rung. Then name it with set_thread_title (a title and a one-line
summary) once you know what the human wants.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "wait_for_reply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | The human's 10-digit Call Me number, from My Number in the app (not a regular phone number). Local clients read it from ~/.aiphone/config.json user_number. In a host without file access, reuse a number given earlier in this chat, but do not claim it is saved across chats. Omit it only to get setup_required with the download links. | |
| cursor | No | The cursor from the previous result; 0 the first time. | |
| wait_s | No | How long to wait for something to arrive, 0 to 30 seconds. | |
| from_label | No | Who is calling, shown on their phone and spoken: e.g. "Claude on my laptop". | Someone's AI |
| session_token | No | A session_token from an earlier result, to stay in that thread. Omit on first contact. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | Yes | Pass back as cursor next time to see only newer events. | |
| events | Yes | New events since the cursor; empty means nothing yet. | |
| session_token | No | This session's token, to pass to every later call, text and wait_for_reply. |