Expand description
Monitor tool — long-running watcher.
Spawns a shell command and reads its stdout line-by-line until the process
exits or timeout_ms elapses. Returns the collected lines as a single
result string. Use this for tasks where you’d otherwise poll repeatedly
(tail -f log | grep ERROR, inotifywait -m, status pollers).
Note: the Tool trait returns one result per invocation; we don’t stream
events back to the loop in v0.3.0. The lines are concatenated and returned
when the watcher exits.