reference_import
Import a bounded single-frame PNG from workspace/inbox as an immutable drawing reference for glyph design, mapping image pixels to font units via image_to_font and requiring expected_revision.
Instructions
Import a bounded single-frame PNG from workspace/inbox as an immutable drawing reference. image_to_font maps image pixels (top-left, Y down) to font units (baseline, Y up). Requires expected_revision. No tracing or automatic rescaling; use reference_id with render_glyph.
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": {
"project_id": "<project_id>",
"expected_revision": "<expected_revision>",
"reference_id": "<reference_id>",
"glyph_id": "<glyph_id>",
"source_path": "<source_path>",
"image_to_font": "<image_to_font>"
},
"name": "reference_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crop | No | ||
| label | No | ||
| replace | No | ||
| summary | No | ||
| glyph_id | Yes | ||
| image_mode | No | inline | |
| project_id | Yes | ||
| source_path | Yes | ||
| reference_id | Yes | ||
| image_to_font | Yes | ||
| expected_revision | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| error | No | ||
| changed | No | ||
| summary | Yes | ||
| revision | No | ||
| warnings | No | ||
| project_id | No |