Add Layout Label
add_layout_labelAdd a text label to a print layout in QGIS. Supports dynamic expressions and custom colors.
Instructions
Add a text label to a print layout (mm). text may contain [% expression %] for dynamic content. color is hex (e.g. '#000000').
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": {
"layout_name": "<layout_name>",
"text": "<text>"
},
"name": "add_layout_label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| text | Yes | ||
| color | No | #000000 | |
| width | No | ||
| height | No | ||
| font_size | No | ||
| layout_name | Yes |