create_document
Create any native KOMPAS-3D document type: part, assembly, drawing, fragment, specification, or text. Returns API7 handles; for API5 modeling, use create_part to get a document_id.
Instructions
Create a native part, assembly, drawing, fragment, specification or text document.
Returns API7 handles; use create_part when you need a document_id for typed API5 modeling tools.
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": {
"kind": "<kind>"
},
"name": "create_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| visible | No |