add_mtext
Insert multiline text (MTEXT) in a CAD drawing with its top-left corner at a given insertion point; set color, layer, height, and wrap width.
Instructions
Add multiline text (MTEXT) with its top-left corner at the insertion point.
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>",
"insert": "<insert>"
},
"name": "add_mtext"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Paragraph text; use \P for new lines | |
| color | No | ACI 0-256 or name (red, yellow, green, cyan, blue, magenta, white, bylayer) | |
| layer | No | Target layer (created if missing). Default: current layer. | |
| width | No | Wrap width; 0 = no wrapping | |
| height | No | ||
| insert | Yes | [x, y] or [x, y, z] |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||