Poll a session for new output
get_replyFetch new output from an active Claude Code session using a cursor, wait briefly, return latest results with a fresh cursor. Repeat to track long tasks until the session finishes.
Instructions
Watch a session and return whatever it produced since the given cursor, along with a fresh cursor. Blocks for at most wait_seconds, then returns what it has — so call it repeatedly to follow a long task. The result says whether the session finished or is still working. If it is still working, call this again with the returned cursor. Assistant turns list the tools the session used, which is the progress signal while a task is underway.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | Cursor from a previous send_message/get_reply call. Omit to read from now on. | |
| session | Yes | Session name, session id (or unique prefix), or pid. | |
| wait_seconds | No | How long to wait for activity before returning (default 25). Values below 20 are raised to 20: short waits mean more polls for the same task, and every extra poll is another chance to lose the thread. It returns as soon as the session settles, so a longer wait costs nothing. |