Theme From Image
theme_from_imageGenerate up to three report themes from a local image, or apply a chosen theme as a custom report theme with a restorable, journalled write.
Instructions
Theme > Extract theme from image. Without choice: sends the local image to Datastudio's theme generator and returns up to 3 generated themes (colors, series, palette) plus report_fingerprint; nothing changes. With choice (0-based) and that fingerprint: stores the chosen theme as the report's custom theme and activates it, exactly as the dialog's Apply (fonts and other slots reset to the editor defaults, as in the UI). One journalled report write, restorable.
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": {
"path": "<path>"
},
"name": "theme_from_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| choice | No | ||
| dry_run | No | ||
| report_id | No | ||
| expected_report_fingerprint | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||