Prepare a review
prepare_reviewScan code or a draft report for secrets, then return a SHA-256 manifest, reviewer instructions, and output format for your own model to review before submission.
Instructions
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. Name the files as paths for the server to read under its working directory, pass their text as files, or both.
Input 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 | No | 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. | |
| paths | No | Files for the server to read from disk, as paths under its working directory, such as src/Vault.sol. They come before the inline files and count toward the same limits: 50 files, 120 KB each, 240 KB and 20,000 lines together. | |
| 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
| Name | Required | Description | Default |
|---|---|---|---|
| request | Yes | ||
| findings | No | ||
| manifest | Yes | ||
| instructions | Yes | ||
| outputFormat | Yes |