get_widget_by_text
Locate a widget in a Tkinter application by searching its text content. Returns the widget ID of the matching element.
Instructions
Find a widget by its text content.
Searches the widget tree for a widget containing the specified text. Returns the widget ID if found.
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_widget_by_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to search for |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |