add_text
Insert standalone text into an Excalidraw diagram at specified coordinates, customize font/color, and return the new element ID for later edits.
Instructions
Add standalone text and return its element ID. font_family can be 'excalifont', 'sans-serif', 'monospace', 'comic-shanns', or an Excalidraw font number (1=Excalifont, 2=sans-serif, 3=monospace, 4=comic-shanns).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| content | Yes | ||
| opacity | No | ||
| frame_id | No | ||
| font_size | No | ||
| font_family | No | ||
| strokeColor | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text_id | No | ||
| arrow_id | No | ||
| frame_id | No | ||
| label_id | No | ||
| circle_id | No | ||
| diamond_id | No | ||
| rectangle_id | No |