Get @Preview source code
devilge_get_compose_preview_sourceRetrieves the complete source code of a @Preview composable function, including its annotations and body, from a specified Kotlin file.
Instructions
Returns the full source code of a @Preview composable, including its annotations and body.
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": {
"filePath": "<filePath>",
"functionName": "<functionName>"
},
"name": "devilge_get_compose_preview_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path (absolute or relative to project root) of the .kt file containing the preview. | |
| functionName | Yes | Name of the @Preview function to fetch. |