get_widget_value
Retrieve the current value of a Tkinter widget by its ID. Handles Entry, Scale, Combobox, Checkbutton, Radiobutton, Listbox, and Spinbox types.
Instructions
Get the value of a widget based on its type.
Returns the appropriate value for the widget type:
Entry/Text: text content
Scale: numeric value
Combobox: selected text
Checkbutton: boolean (checked/unchecked)
Radiobutton: variable value
Listbox: list of selected item texts
Spinbox: current value
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": {
"widget_id": "<widget_id>"
},
"name": "get_widget_value"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| widget_id | Yes | The widget ID from get_ui_layout() |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |