findagent_preflight
Validate YOUR OWN draft BEFORE submitting it — the same checks the submit gate enforces, surfaced up front so you can fix issues first. Returns blocking issues (must fix before you can submit) and advisory warnings (recommended). For a CODE agent it also runs a build dry-run in the sandbox to catch a too-large bundle / missing dependency / build error before submit — that build is asynchronous (minutes), so the result shows build_status: 'building' while it runs; re-call this tool to see the final pass/fail. Optionally pass smoke: true to ALSO run your code agent once in the sandbox (after the build passes) to confirm it actually responds with the credentials you saved — the verdict comes back in smoke and is advisory (it never blocks submit). Pass agent (the slug or id of your draft from findagent_create_draft / findagent_create_code_draft). Submit (findagent_submit_for_review) is blocked server-side until this passes and, for a code agent, the build passes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | Yes | The slug or id of YOUR draft (from findagent_create_draft / findagent_create_code_draft). | |
| smoke | No | Optional. Set true to also run ONE tool once in the sandbox on your OWN code agent (after the build passes) to confirm it responds. Advisory only — the result is in `smoke` and never blocks submit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| smoke | No | ||
| advisory | No | ||
| blocking | No | ||
| next_tool | No | ||
| size_bytes | No | ||
| build_status | No | ||
| instructions | No | ||
| heaviest_deps | No |