Run a FreeSWITCH API command
freeswitch_apiExecute FreeSWITCH API commands through the event socket and return raw output, with read-only inspection enforced by default and write access enabled through configuration.
Instructions
Run a command through the FreeSWITCH event socket and return its raw output. In the default read-only mode only inspection commands such as 'status', 'show' and 'sofia status' are permitted. Set PBX_MCP_ALLOW_WRITE=true to lift that restriction.
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": {
"command": "<command>"
},
"name": "freeswitch_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | The API command, for example 'show calls' or 'sofia status gateway mytrunk'. |