entity_create_text
Creates a TEXT entity at a WCS insertion point with drawing-unit height, rotation in degrees, and optional layer/color, returning its identifier for labels, callouts, and notes.
Instructions
Create TEXT at a WCS insertion point with drawing-unit height and rotation in degrees, optionally on a layer/color, and return its identifier.
Side-effects: Adds TEXT entity to active space. Disambiguation: Use for labels, callouts, and notes.
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": {
"text": "<text>",
"x": "<x>",
"y": "<y>"
},
"name": "entity_create_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Insertion point X coordinate in WCS drawing units | |
| y | Yes | Insertion point Y coordinate in WCS drawing units | |
| text | Yes | Text string content to display | |
| color | No | AutoCAD Color Index (ACI 1-255). Uses ByLayer if omitted | |
| layer | No | Target layer name. Uses active layer if omitted | |
| height | No | Text height in drawing units (default: 2.5) | |
| rotation | No | Text rotation angle in degrees counter-clockwise (default: 0.0) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||