ghostlan_logs
Read stdout/stderr log lines from a background process in a ghost, with tailing, line offset, and regex/substring filtering to inspect recent or matching output.
Instructions
Read stdout/stderr log lines from a background process in a ghost (supports tail, since_line, and regex/substring filter)
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>"
},
"name": "ghostlan_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lan | Yes | Name of the virtual LAN | |
| tail | No | Trailing lines to read (default 100, -1 or 0 for all when filtering) | |
| ghost | Yes | Ghost name inside the LAN | |
| filter | No | Case-insensitive regex or substring filter | |
| proc_id | No | Process ID (optional if ghost has one process) | |
| since_line | No | Skip the first N lines (1-based offset) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | ||
| total_lines | Yes | ||
| matched_lines | Yes |