Prepare a review
prepare_reviewRead-onlyIdempotent
Call before reviewing code or a draft report with your own model. Takes the core profiles: general, solidity, report. Scans the files for secrets, then returns a SHA-256 manifest, the reviewer instructions, the output format and the request to answer. File contents are not sent back. When the scan blocks, the result lists file, line and kind of each match. A hosted profile is refused with code hosted_profile: run it with run_review. No account needed.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | bounty: a finding for a programme. own-code: code you ship. Only profiles whose mode is "either" read this; it defaults to bounty. | |
| files | Yes | The text files to review: up to 50 files, 120 KB each, 240 KB and 20,000 lines together. For a report review, put the draft first and the cited source after it. | |
| prompt | No | What to look at. Leave empty for the profile default. | |
| context | No | What the researcher states about the finding. Leave out what is unknown. | |
| profile | No | Review profile id from list_profiles. Defaults to general. | |
| acknowledgeWarnings | No | Set true to send files in which the privacy check found email or IP addresses. Secrets are never sent. |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | Yes | ||
| findings | No | ||
| manifest | Yes | ||
| instructions | Yes | ||
| outputFormat | Yes |