Search call history
search_callsFinds phone calls on this Widely seat by date range, direction, contact name, or number. Returns one row per phone call, with direction, duration, outcome, the identity used, and whether a transcript or recording exists. started_at, ended_at, and created_at are UTC. The matching _local fields use the account timezone, or timezone when you pass an IANA name. Numbers are E.164. remote_number is the other party, including the other leg when the collapsed leg shows this seat's own number on both sides. remote_name is the saved contact for that number when one contact matches and the saved name is not the number. When you tell the user about a call, say remote_name. Say remote_number only when remote_name is empty.
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": "search_calls"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Look back this many days (default 30). | |
| line | No | ||
| limit | No | Max rows to return. | |
| query | No | Words from a stored transcript. Pro. | |
| since | No | ISO 8601 start (inclusive). | |
| until | No | ISO 8601 end (exclusive). | |
| number | No | Phone number or trailing digits. | |
| contact | No | Saved contact name to match. | |
| timezone | No | IANA timezone for the local-time fields. Defaults to the account timezone. | |
| direction | No | ||
| missed_only | No |