ghostlan_exec
Run a one-shot command inside a specified ghost on a virtual LAN and capture stdout, stderr, and exit code for inspection.
Instructions
Run a one-shot command inside a ghost and capture stdout, stderr, and exit_code
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": {
"lan": "<lan>",
"ghost": "<ghost>",
"command": "<command>"
},
"name": "ghostlan_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Optional environment variable overrides | |
| lan | Yes | Name of the virtual LAN | |
| ghost | Yes | Ghost name inside the LAN | |
| command | Yes | Command and arguments to execute | |
| timeout_sec | No | Timeout in seconds (default 30) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stderr | Yes | ||
| stdout | Yes | ||
| exit_code | Yes |