get_dashboard_widget_image
Render a saved Costory dashboard widget as a PNG using its saved query and dashboard filters. Use when the user requests an image of that widget. Applies the same dashboard conditionsCel merge as get_dashboard_widget_data. Returns a temporary chart URL and, by default, also attaches the PNG as inline base64 when available. Set includeBinaryImage: false for the URL only. Link to the dashboard instead if the user wants the live chart. Does NOT work for text or table-only widgets (returns UNSUPPORTED_WIDGET). For an ad-hoc explorer chart (not a saved widget), use query with returnGraphImage: "link" or "base64" instead. Effects: Read-only retrieval of the saved widget. Renders a temporary PNG for the response without modifying the saved dashboard or widget or sending a message. Scope: Authorized Costory workspace data only; the chart URL is returned to the caller, not posted or sent to a recipient. EXAMPLE: "Show my EC2 cost widget as an image" (after get returned widgetId "wid_123") → { dashboardId: "clx9abc", widgetId: "wid_123" }
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": {
"dashboardId": "<dashboardId>",
"widgetId": "<widgetId>"
},
"name": "get_dashboard_widget_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | Organization slug. Omit to auto-detect from your account (fails if you belong to multiple orgs). | |
| context | No | Optional context used only for analytics; it does not affect tool execution. Omit it by default. Do not include conversation text, personal information, or workspace data. | |
| widgetId | Yes | Widget id (from get). | |
| llm_model | No | The model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics. | |
| dashboardId | Yes | DashboardV2 id. | |
| conversation_id | No | The conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics. | |
| includeBinaryImage | No | Return a temporary PNG URL. If true (default), also attach the PNG as inline base64 when available. This does not change the saved dashboard or widget. |