Run an Asterisk CLI command
asterisk_cliExecute Asterisk CLI commands to inspect live PBX status and retrieve raw output. Read-only mode by default, optional write access for control.
Instructions
Run a command through the Asterisk CLI and return its raw output. In the default read-only mode only inspection commands such as 'core show', 'pjsip show' and 'queue show' are permitted. Set PBX_MCP_ALLOW_WRITE=true to lift that restriction.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | The CLI command, for example 'pjsip show endpoints' or 'queue show support'. |