list_sms
List SMS received on a phone number (id, from_number, text, received_at per message — the text rides in the summary). Set wait to long-poll for new messages; use since as a cursor.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"phone_number_id": "<phone_number_id>"
},
"name": "list_sms"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Long-poll up to this many seconds (max 60) for a matching message instead of returning an empty list immediately. | |
| match | No | Filter: `from:term`, `to:term`, or `body:term`; a bare term matches the body. | |
| since | No | Only messages received after this RFC 3339 timestamp. Use the received_at of the last message you saw as a cursor. | |
| phone_number_id | Yes | Phone number id (uuid). |