ghostlan_wait_log
Poll a ghost's background process log until a line matches the given pattern or the timeout expires, enabling reliable detection of background output in a virtual LAN.
Instructions
Poll a ghost's background process log until a line matches pattern or timeout expires
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>",
"pattern": "<pattern>"
},
"name": "ghostlan_wait_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lan | Yes | Name of the virtual LAN | |
| ghost | Yes | Ghost name inside the LAN | |
| pattern | Yes | Case-insensitive regex or substring to wait for | |
| proc_id | No | Process ID (optional if ghost has one process) | |
| since_line | No | Only match lines after this 1-based line number | |
| timeout_sec | No | Timeout in seconds (default 10) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| log_file | Yes | ||
| line_number | Yes | ||
| matched_line | Yes |