peer_turn
Submit code changes and diffs for peer review in an active session to get AI-driven feedback.
Instructions
Before calling: read relevant source files and attach full contents via files. Pass complete diffs/logs — never prose summaries. Set task with goals, affected behavior, and specific concerns. Follow up in an existing routed peer session (use session_id from a prior result).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | session_id from results.<cli>.sessionId in a prior routed tool response. | |
| message | Yes | What changed since the last turn, what you fixed, and what you want re-checked. | |
| diff | No | Full unified diff or patch output. Never substitute a prose summary for the actual diff. | |
| files | No | Changed source files and binary attachments (screenshots, PDFs). Use correct file extensions for images/PDFs and pass base64 or data-URI content. | |
| idempotency_key | Yes | Stable key for this operation (e.g. review-auth-jwt-1). Reuse the same key when retrying after timeout. | |
| expected_version | No | Pass version from the last turn to avoid stale-session races. |