Read one CAD file's contents
get_file_contentReturn the contents of one free file so the geometry can be read or modified directly: STEP and DXF as UTF-8 text, STL as base64. Units are millimetres, true size. Use it after get_free_files gives the file name and the content itself is needed; use get_free_files when a download URL is enough, which is cheaper for large files. Files over 600 KB are not inlined: the response carries inlined=false, size_bytes and the URL to fetch instead. An unknown file name is an error that lists the valid names. Read-only, no auth, no charge.
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": {
"object": "<object>",
"file": "<file>"
},
"name": "get_file_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | A file name exactly as get_free_files lists it, e.g. '4080-100'. | |
| format | No | Default step. DXF exists only for 2D sections such as extrusion profiles. | |
| object | Yes | Object slug as returned by find_geometry or find_by_dimensions, e.g. '4080-aluminum-extrusion'. An exact object name or alias also resolves; anything else is an error with a hint to search first. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Direct download URL for the same file. | |
| file | Yes | File name. | |
| units | No | mm. | |
| format | Yes | step | dxf | stl. | |
| object | Yes | Object slug. | |
| content | No | The file contents, present when inlined is true. | |
| inlined | No | False when the file was too large to include; fetch url instead. | |
| license | No | License and credit. | |
| encoding | No | utf-8 for STEP and DXF, base64 for STL. | |
| size_bytes | No | File size. |