forge_draft
Load a tap annotation into memory and optionally verify it live against a URL, returning score and rows.
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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "forge_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL to verify against. When provided, draft loads + runs live verification in one step. | |
| 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. | |
| plan | No | TapAnnotation envelope — W3C Annotation with body:tap:ExecutionPlan. Preferred over code. | |
| description | No | Short summary of what this verifies (e.g. 'HN posts with rank, title, points') |