pi_poll_agent
Poll a Pi agent session to read current assistant text, compact activity status, and pending questions; answer questions through the continue action using the same ID.
Instructions
Immediately read latest assistant text, compact activity metadata and any pending question, without reasoning text or raw tool records. output can stay unchanged while Pi thinks or runs tools; activity shows the latest phase/tool and its update time. needs_input returns question {id,text}: answer via pi_continue_agent on the same ID. Reading a question acknowledges its reminder; polling does not acknowledge final delivery. When idle, use pi_wait_agent instead of repeatedly polling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes |