Create icon set
create_icon_setExport a set of square PNG icons in multiple sizes from a source SVG document. Specify sizes, output directory, and optional name prefix for the generated files.
Instructions
Export a multi-size square PNG icon set from the source document.
When to use: producing a standard square icon set in one call. For a responsive web bundle use
export_web_profile; for arbitrary batch specs use export_batch.
Key params: sizes is the list of square px sizes (defaults to 16, 32, 48, 64, 128, 256). Each
must be a positive integer no greater than the configured pixel cap; an out-of-range or
non-positive size is rejected before Inkscape runs and no partial set is written. out_dir
writes the set into a caller-chosen dir — a relative out_dir anchors to the
workspace ROOT and is sandbox-checked (out-of-workspace rejected "path rejected: outside
workspace"); name_prefix tags each file.
Return shape: ProfileExportResult — profile, applied_settings, and artifacts (each
carries its requested_size_px, a workspace_relative_path, and content-truth
opaque_px/all_blank).
Example: create_icon_set(doc_id, sizes=[16, 32, 64], out_dir="dist/icons")
Risk class: low (export to a sandbox-checked dir; no original overwrite).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sizes | No | ||
| doc_id | Yes | ||
| out_dir | No | ||
| name_prefix | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | ||
| profile | Yes | ||
| artifacts | Yes | ||
| applied_settings | Yes |