draw_text
Creates single-line TEXT or multiline MTEXT in AutoCAD 2027 at a specified insertion point, with options for height, rotation, layer, and color.
Instructions
Create single-line TEXT or multiline MTEXT in AutoCAD 2027.
Args: position: Insertion point [x, y] or [x, y, z]. text: Text string content. height: Text height. rotation_deg: Rotation angle in degrees. multiline: If True, creates MTEXT; otherwise creates TEXT. layer: Optional layer name. color: Optional ACI color (1-255).
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": {
"position": "<position>",
"text": "<text>"
},
"name": "draw_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| color | No | ||
| layer | No | ||
| height | No | ||
| position | Yes | ||
| multiline | No | ||
| rotation_deg | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |