get_text_extents
Calculate the bounding box dimensions of a text string for KiCad PCB layouts, specifying text content and font size.
Instructions
Calculate the bounding box of a text string.
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>"
},
"name": "get_text_extents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text string to measure. | |
| size | No | Font size in mm. Default 10. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||