add_icon
Places a library icon on an Inkboard board as a connectable image object, with optional size, stroke color, and centered label.
Instructions
Places an icon of the library on the board, as an image object that can be connected with add_connector. icon is an id returned by search_icons. Size: size = longest side (default 64, 8 to 2000), or w and/or h (the icon's ratio is kept when only one is given). Monochrome icons (mono: true in search_icons) take the color stroke (default: the theme's text color); colored icons keep their own colors. label adds a text centered under the icon, grouped with it. Returns the image id (and label_id).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | No | ||
| w | No | ||
| x | No | X of the top-left corner. Defaults to below the existing content. | |
| y | No | Y of the top-left corner. | |
| icon | Yes | Icon id from search_icons, e.g. "drawio-aws4/Lambda". | |
| page | No | Page: number (from 1) or name. Defaults to the first. | |
| path | No | Path of the board file (.inkboard; .inkboard.json and .tableau.json also accepted). Optional when the application is open: the tool then acts live on the displayed board (undoable with Ctrl+Z). | |
| size | No | Longest side (default 64). Not combinable with w / h. | |
| label | No | Text placed under the icon (at most 500 characters). | |
| stroke | No | Color "#rrggbb" or "ink" (the theme's text color). | |
| markdown | No | Default false (text taken literally). true: `label` is Markdown: **bold**, *italic* (or _italic_), __underline__, ~~strike~~, {color=#e03131}text{/}, {bg=#ffec99}text{/}, {color=#e03131 bg=ink}text{/} (colors: #rrggbb or ink); nesting allowed; \ escapes * _ ~ { } \. Markup that cannot be applied stays literal text and is listed in the `warnings` of the result. |