get_view
Capture a FreeCAD document view as a PNG and return its saved path, enabling visual checks of model geometry and assemblies.
Instructions
Capture one document's view and return the saved PNG's path.
Costly in context: reserve it for visual checks; prefer get_objects or measure_geometry for numbers. Without width/height the long edge is capped at 384 px.
Args:
view_name: Camera view, one of the nine names.
width/height: Pixel size; a smaller image saves context.
focus_object: Fit this object; the default frames everything.
doc_name: Frame this document; another agent may have switched the foreground tab.
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": {
"view_name": "<view_name>"
},
"name": "get_view"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | ||
| height | No | ||
| doc_name | No | ||
| view_name | Yes | ||
| focus_object | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |