run_tool
Execute installed cybersecurity tools or system utilities locally or via SSH with sanitized arguments, timeout control, and truncated output.
Instructions
Execute an installed cybersecurity tool or system utility and return its output.
Runs tools from the 670+ registry as well as ~120 standard system utilities (strings, file, curl, grep, base64, xxd, jq, etc.) that are allowed without being in the registry. Arguments are sanitized to prevent shell injection. Timeout is clamped to 1-300s. Output is truncated at 200KB.
Network tools (including curl, wget, ping, etc.) are restricted to local/private targets by default. Set CYBERSEC_MCP_ALLOW_EXTERNAL=1 to allow external targets.
When host is provided, the tool is executed on the remote host via SSH. The tool does not need to be installed locally — only on the remote host.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Command-line arguments as a string (e.g. "--version" or "-sV 10.0.0.1"). | |
| host | No | Optional remote host name (as configured via manage_remote_hosts). | |
| timeout | No | Maximum execution time in seconds (default 120, max 300). | |
| tool_name | Yes | Name of the tool to run (registry tool or system utility). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||