Collect diagnostics by key
collectRun up to 8 whitelisted commands on a remote host and return their redacted, truncated output for diagnosing server issues.
Instructions
Run up to 8 whitelisted commands on a host and return their (redacted, truncated) output. Use get_whitelist to see valid keys. Keys outside the whitelist are rejected.
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": {
"host": "<host>",
"keys": "<keys>"
},
"name": "collect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | host name from list_hosts | |
| keys | Yes | whitelisted command keys | |
| container | No | container name, required by container-scoped keys |