Specification rows
spec_editAdd, edit, or delete manual rows in KOMPAS specification (.spw) sections like Documentation, Materials, and Components; check before data to handle changes safely since KOMPAS has no row undo.
Instructions
Rows of a specification (.spw) that do not come from the model: Документация, Прочие изделия,
Материалы, Комплекты (ГОСТ 2.106). inspect_model on the .spw lists them with ids (free_rows). Positions
are filled by KOMPAS by its own settings. NOTE: KOMPAS keeps no Undo for specification rows — the result
has before; delete rows only with the user's consent.
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": {
"doc": "<doc>"
},
"name": "spec_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add | No | new rows {section: 'Документация'|'Прочие изделия'|'Материалы'|'Комплекты', name, designation?, quantity?, note?, format?} — e.g. the assembly drawing «Сборочный чертеж» with its designation, a bought motor, a sealant with quantity and unit in note | |
| doc | Yes | Document handle from doc_list/doc_open, e.g. 'doc:12001:0a1b2c3d' | |
| edit | No | {id, field: new text…} for free rows | |
| delete | No | ids of free rows to delete |