create_pie_chart
Turn proportional data into a pie chart with labeled slices showing percentages. Supports optional title and theme, saves to an .excalidraw file.
Instructions
Create a pie chart diagram.
Generates a pie chart with labeled slices showing proportions. Each slice displays its label and percentage.
Args: slices: List of slices with label and value title: Optional chart title output_path: Optional output file path theme: Color theme - "light" or "dark"
Returns: Absolute path to the generated .excalidraw file
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": {
"slices": "<slices>"
},
"name": "create_pie_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| theme | No | light | |
| title | No | ||
| slices | Yes | ||
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |