Scaffold test from API
scaffold_testGenerates valid smoke or example test YAML from an existing .mmt API file, along with suggested path, import alias, and apiCard for minimal editing before validation.
Instructions
REQUIRED first step when generating a new Multimeter test from an existing API .mmt. Returns valid smoke (or example) test YAML, suggested path, import alias, and a compact apiCard. Write the yaml, apply only minimal edits, then validate. Do not invent a blank test from scratch. Do not use testlight, npx, npm, shell, or node dist/mcp/server.js.
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": {
"workspaceRoot": "<workspaceRoot>",
"apiPath": "<apiPath>"
},
"name": "scaffold_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alias | No | Optional import alias override | |
| apiPath | Yes | API .mmt file path relative to workspaceRoot or absolute | |
| outPath | No | Optional suggested output test path (relative) | |
| strategy | No | smoke (default) or example inputs | |
| workspaceRoot | Yes | Workspace root directory |