Capture view
view_captureCapture a PNG snapshot of a KOMPAS document as rendered, optionally using a standard orientation or fit-to-view for that image while restoring the user's current view afterward.
Instructions
PNG image of the document as KOMPAS renders it. By default the user's current view; view/fit turn the view for this snapshot only — the user's orientation and zoom are restored right after (they may see a short flicker). Front = XY plane (ГОСТ 2.305 главный вид), top = ZX.
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": "view_capture"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | Yes | Document handle from doc_list/doc_open, e.g. 'doc:12001:0a1b2c3d' | |
| fit | No | zoom to show everything | |
| size | No | Approx. width px | |
| view | No | 3D models: standard orientation for this snapshot | current |