ivd_import_spec
Parses GitHub Spec Kit or OpenSpec spec.md files into a constraint scaffold, extracting user stories and Given/When/Then scenarios with agent instructions to draft IVD constraints that include a real test field.
Instructions
Parse a GitHub Spec Kit or OpenSpec artifact (spec.md) into a constraint scaffold. Read-only, no LLM call. Extracts User Story / Requirement + Given/When/Then scenarios and returns agent_instructions for drafting IVD constraints with a real test: field — the binding neither source format provides.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"spec_path": "<spec_path>",
"source_format": "<source_format>"
},
"name": "ivd_import_spec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec_path | Yes | Path to the spec.md file (absolute, or relative to project_root). | |
| project_root | No | Path to repo root, used to resolve a relative spec_path (defaults to IVD framework root when omitted). | |
| source_format | Yes | Which tool produced this spec file. |