Ask for a value by message
- Permission required
agent:runtime(agent keys only)
When to use it
Leaves pending a value the caller will send later by message (e.g. their email over WhatsApp). The server completes it; there is no URL to give.
Input
| Field | Type | Description |
|---|---|---|
call_id | string | The current call (call_id from call_start) |
phone | string | Default: the caller's |
field_neededRequired | string | Which value is missing: email, id number… |
type | string | What for: booking, sign-up… |
payload | object | Data you already have |
ttl_minutes | integer | How long to wait for it (default 15 min) |
Every tool also accepts lang (es | en) for the language of the text answer.
Output
| Field | Type | Description |
|---|---|---|
capture_idRequired | number | |
dedupedRequired | boolean | |
expires_atRequired | string | |
phone_last4Required | string |
Examples
Example 1: Email by WhatsApp
Call
{
"name": "capture_request",
"arguments": {
"call_id": "room-abc",
"field_needed": "email",
"type": "alta"
}
}Equivalent JSON-RPC call (POST /mcp)
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "capture_request",
"arguments": {
"call_id": "room-abc",
"field_needed": "email",
"type": "alta"
}
}
}