power_shell_read
Retrieve output from a PowerShell session by supplying its session ID. Optionally clear the buffer after reading to keep subsequent output clean.
Instructions
Read output from a PowerShell shell session. Do NOT call this concurrently with power_shell_exec/power_shell_write on the same session_id — concurrent access to the same PowerShell process corrupts the output buffer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | Buffer clear flag: 1 (default) = clear buffer after reading, 0 = keep buffer | |
| session_id | Yes | The session ID returned by power_shell_open |