inspect_flet_control
Retrieve the exact, current API of any Flet control from installed source: properties, types, defaults, events, and deprecations. Use before writing UI code to avoid outdated control definitions.
Instructions
Get the exact, current API of any Flet control straight from the installed source: every property with its type and default (inherited ones marked), events (on_*), deprecation warnings, the class hierarchy, and the full class source with per-property docstrings. ALWAYS use this before writing Flet UI code — control APIs in training data are often outdated.
Args: control_name: Public flet class name, e.g. 'Button', 'TextField', 'CupertinoSwitch', 'Page', 'View'.
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": {
"control_name": "<control_name>"
},
"name": "inspect_flet_control"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| control_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |