Create specification
spec_createCreates a GOST 2.106 specification (.spw) for a saved assembly, filling sections, positions, designations, names, and quantities from components and the title block.
Instructions
Specification (спецификация, ГОСТ 2.106) of a SAVED assembly: a new .spw with the assembly attached;
KOMPAS fills the sections, positions, designations, names and quantities from the components and the
title block from the assembly. Returns the rows (check them against asm_bom). Saved to path.
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": {
"assembly": "<assembly>",
"path": "<path>"
},
"name": "spec_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | new .spw file (absolute, inside the allowed roots) | |
| assembly | Yes | Document handle from doc_list/doc_open, e.g. 'doc:12001:0a1b2c3d' | |
| overwrite | No | replace an existing file (only after the user agreed) |