Open document
doc_openOpen KOMPAS-3D documents from allowed roots, read-only by default, and import STEP/IGES files into a new millimeter model without modifying the source.
Instructions
Open a KOMPAS document (.m3d/.a3d/.cdw/.frw/.spw) from an allowed root. Opens read-only by default.
Returns the document handle. If the file is already open, returns its existing handle.
STEP/IGES (.stp/.step/.igs/.iges) are IMPORTED: a new model in mm is created from a temporary copy (the
source is never modified); the answer has import.source_units read from the file header (e.g. inch),
the bounding box in mm and the imported bodies. Imported bodies have no feature history.
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": {
"path": "<path>"
},
"name": "doc_open"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path inside the allowed roots | |
| read_only | No | Open read-only (default) |