Block or Allow a Caller
screen_callerUse this when the user says "block this caller" or "always let them through" about a call that came in. Takes callId (from missed_calls, list_calls or get_call) and action 'block' or 'allow'. The caller's number is added to the block list (block) or the VIP list (allow) and taken off the other list in the same change; every other number on both lists stays. Without confirmed:true nothing changes: it returns confirmation_required with both lists' changes and a confirmKey; call again with confirmed:true and that confirmKey only after the user says yes. A list that changed since the preview returns stale_preview with a fresh one. A hidden number or a call OsmO placed returns no_number. Not for a typed number (use update_settings).
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": {
"callId": "<callId>",
"action": "<action>"
},
"name": "screen_caller"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | 'block' puts the caller on the block list; 'allow' on the VIP list (always put through). | |
| callId | Yes | A call that came in: a callId from missed_calls, list_calls or get_call. | |
| confirmed | No | Leave out first. true only after the user has said yes to the preview. | |
| confirmKey | No | The confirmKey from the confirmation_required preview. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | What happened, e.g. ok, confirmation_required, not_found. | |
| message | No | One sentence for the user, when there is one. |