phoneNumberAgentActions
Attach a phone number to an agent or detach it from its current agent. Choose the attach or detach action and specify the phone number ID to manage agent-number assignments.
Instructions
Attach a phone number to an agent, or detach it from its agent.
Set action to pick what to do.
attach: Attach a phone number to an existing agent.
detach: Detach a phone number from its agent.
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": {
"action": "<action>",
"phone_number_id": "<phone_number_id>"
},
"name": "phoneNumberAgentActions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | What to do: attach, detach. | |
| agent_id | No | Only for `attach`. ID of the agent to attach the phone number to. | |
| phone_number_id | Yes | ID of the phone number to attach. |