Compose previews — hierarchical tree
devilge_get_compose_previews_treeOrganizes Jetpack Compose @Preview functions into a tree by module, file, and function, grouping multiple annotations as variants, with a summary totals and orphaned previews.
Instructions
Returns every Jetpack Compose @Preview in the project organized as modules → files → functions → variants. Multiple @Preview annotations on the same Composable are grouped as variants of one function. Includes a totals summary by group and an orphans bucket for previews outside any known module.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "devilge_get_compose_previews_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxFiles | No | Maximum number of .kt files to scan. Defaults to 5000. | |
| moduleFilter | No | Optional path (relative to project root) to restrict the scan, e.g. "modules/feature". |