get_program_output
Read the last lines a spawned program wrote to stdout and stderr, with running/exit status, to diagnose missing windows or crashes.
Instructions
Read the last lines (40, or lines) a spawned program wrote to stdout and stderr, after a line saying whether it's still running or exited, with its status. It works after the program has exited, until the session stops; for a program spawned more than once, it reads the latest. Use it when a window never comes up or a program seems to have crashed; to wait for a line in a log file, use wait_for line.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | How many lines from the end (40) | |
| program | Yes | Its name in the allow list | |
| session | Yes | Its name, from start_session |