Assign number to agent
assign_phone_numberAssign a phone number ID to an agent so it answers inbound calls; pass the ID from list_phone_numbers, not the dialed digits.
Instructions
Make an agent answer inbound calls on a number. Pass the number's id, not the digits.
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>",
"agent_id": "<agent_id>"
},
"name": "assign_phone_number"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | Agent id | |
| agent_version | No | Pin a published version; omit for the live draft | |
| phone_number_id | Yes | Phone number id from list_phone_numbers |