format_text
Formats existing board text, connector labels, or table cells by applying bold, italic, underline, strikethrough, color, or highlight to the whole text, a match, or a character range.
Instructions
Formats text already on the board, like selecting it in the application: bold, italic, underline, strike, color, highlight. Works on a shape's text, a connector's label, or one table cell (cell). Choose the part with match (first occurrence; every one with all: true) or range [start, end) (character indices of the plain text, end excluded); with neither, the whole text. clear: true removes all formatting of the part first (then the other options apply). Returns changed: the number of characters whose formatting changed. Error if match is not found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Object id (add_shape, describe_board…). | |
| all | No | With `match`: format every occurrence, not only the first. | |
| bold | No | true applies bold, false removes it. | |
| cell | No | [row, column] (from 0) of the table cell to format; required for a table, invalid otherwise. | |
| 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). | |
| clear | No | true removes every formatting of the part. | |
| color | No | Text color: "#rrggbb" or "ink" sets it, null removes it. | |
| match | No | Substring to format (case-sensitive). | |
| range | No | [start, end): character indices, start included, end excluded. | |
| italic | No | true applies italic, false removes it. | |
| strike | No | true applies strikethrough, false removes it. | |
| highlight | No | Highlight color behind the text: "#rrggbb" or "ink" sets it, null removes it. | |
| underline | No | true applies underline, false removes it. |