check_style_contrast
Audit a map style's colour contrast against WCAG 2.1 (4.5:1 for label text, 3:1 for graphics like the route line), across both the light and dark palette variants. Pass a hosted style_id OR an inline theme document (as accepted by create_style). Advisory: failing pairs list the palette slots to adjust with set_palette; publishing is never blocked on contrast.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "check_style_contrast"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| theme | No | …or an inline theme document (as accepted by `create_style`). Exactly one of `style_id`/`theme` must be given. | |
| style_id | No | Hosted style id whose latest theme should be checked… |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| passes | Yes | True when every audited pair meets its WCAG threshold. | |
| findings | Yes | Every audited pair, failing pairs first. |