Follow a background run
followRetrieve new output from a background command, returning only unread lines. Use with a handle from a background 'run' call; optionally wait for output, stop the command, or check all running processes.
Instructions
Return what a background command has printed since the last time you asked, and nothing you have already been shown. Use it with the handle from a run call made with background. The lines keep the numbers they have in the whole run, so peek on any of them returns that same line; a stretch that was only progress comes back as a gap saying how many lines it stands for, and a quiet minute comes back as nothing at all rather than as filler. Set stop when you are done with the command: it ends it, and everything it started, and returns the last of the output. Always stop a command you are finished with -- a background command left alone keeps running.
With everything it answers about every run still going in one call, which is what to use when you started three things and want to know where they are. With wait it holds until something is actually said rather than coming back empty: an empty answer is a tool result that stays in the conversation for the rest of it, so waiting once costs less than asking five times.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stop | No | ||
| wait | No | ||
| handle | No | ||
| everything | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |