Get an ArkUIBuilder widget
get_widgetRetrieves details of a specific ArkUI widget by name, id, or title, optionally including its source code for adaptation.
Instructions
Details of one widget by component name (e.g. ColorStudioFb), id or title. Set include_code only if you need to read or adapt its source; to use it as-is call add_widget instead.
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": {
"name": "<name>"
},
"name": "get_widget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Component name, id or title | |
| include_code | No | Include the full ArkTS source (default false) |