Improve an existing chart
improveChartDiagnose a chart configuration, assess data fit, and propose repairs or variants.
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": {
"component": "<component>",
"props": "<props>"
},
"name": "improveChart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| props | Yes | ||
| intent | No | ||
| component | Yes | ||
| fieldRoles | No | Per-field semantic or exact encoding-role hints used before chart ranking. | |
| identifiers | No | Fields that identify records and must not be used as visual encodings or measures. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repair | Yes | ||
| status | Yes | ||
| variants | Yes | ||
| component | Yes | ||
| diagnostics | Yes | ||
| surfaceVersion | Yes | ||
| evidenceFragment | No | ||
| accessibilityRecommendation | No |