upload_file
Import SVG, DXF, AI, PDF, or image files into the current LightBurn project, merging them at specified workspace coordinates with optional origin anchoring.
Instructions
Requires capability "upload" (plus "state" for import confirmation). Imports a file into the CURRENT project (merge), like File > Import. Supported: .svg, .dxf, .ai, .pdf, .lbrn/.lbrn2, .png/.jpg/.bmp and other formats LightBurn can import. Send a local file via path, or generated content via content (text such as SVG) or content_base64. Optionally anchor the import at workspace coordinates x/y in mm (workpiece origin) with origin naming which point of the bounding box sits at the anchor (default center); without x/y it lands at the current view center. Waits up to wait_seconds for LightBurn's file_imported event and reports the outcome.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Anchor X in workspace mm. Must be given together with y. | |
| y | No | Anchor Y in workspace mm. Must be given together with x. | |
| path | No | Absolute path of a local file to send. | |
| origin | No | Which point of the import's bounding box sits at (x, y). Default center. | |
| content | No | Text content to send instead of a file, e.g. SVG markup. | |
| filename | No | Filename with extension; selects the importer (.svg, .dxf, .lbrn2, .png, ...). Required with content/content_base64; defaults to the basename of path. | |
| group_shapes | No | true keeps the imported shapes grouped; false uses LightBurn's global preference. | |
| wait_seconds | No | How long to wait for LightBurn's import confirmation (default 30). | |
| content_base64 | No | Binary content as base64 (images, DXF binaries). |