acad_add_mtext
Adds multi-line text to AutoCAD model space or a specified layout’s paper space, letting you set insertion point, content, size, style, layer, and color.
Instructions
Add multi-line text (MTEXT) to model space, or to a layout's paper space when layout is given. point = [x, y] (top left), text up to 2000 characters. Put a new line with \P in the text. height and width in inches. style must exist in the drawing, for example "Annotative" for the template text. Returns the entity handle.
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": {
"point": "<point>",
"text": "<text>"
},
"name": "acad_add_mtext"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| layer | No | ||
| point | Yes | ||
| style | No | Standard | |
| width | No | ||
| height | No | ||
| layout | No | ||
| color_index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||