forge_draft
Load a tap into memory via plan or code. Provide a URL for live verification returning score and rows, or omit to save the draft.
Instructions
Load a tap into memory and optionally verify it live. Accepts a structured plan (TapAnnotation — preferred; verify runs it via the plan runtime) or legacy code (.tap.js source). When url is provided, auto-runs verification and returns {score, rows}. Without url, just stashes the draft.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | No | TapAnnotation envelope — W3C Annotation with body:tap:ExecutionPlan. Preferred over code. | |
| code | No | Legacy .tap.js source — still supported for rollback; auto-migrated on save. | |
| path | No | Path to .tap.js file. Ignored when plan or code is provided. | |
| url | No | URL to verify against. When provided, draft loads + runs live verification in one step. | |
| description | No | Short summary of what this verifies (e.g. 'HN posts with rank, title, points') |