Load a DXF for the viewer widget
load_dxf_for_viewerInternal: returns DXF bytes (base64) for the in-chat viewer. Called by the widget, not the model.
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": {
"source": "<source>"
},
"name": "load_dxf_for_viewer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| length | No | Byte length of the requested range | |
| offset | No | Byte offset of the requested range | |
| source | Yes | http(s) URL of the drawing (same guards as the other tools) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offset | Yes | Byte offset this slice starts at | |
| byteLength | Yes | Total size of the whole file | |
| bytesBase64 | Yes | The requested bytes, base64 |