Compare Mapbox Styles Tool
style_comparison_toolCreate a side-by-side comparison of two Mapbox styles to visually evaluate differences in map design. Input before and after style identifiers and an access token to generate a shareable URL.
Instructions
Generate a comparison URL for comparing two Mapbox styles side-by-side
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": {
"before": "<before>",
"after": "<after>",
"accessToken": "<accessToken>"
},
"name": "style_comparison_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zoom | No | Initial zoom level for the map view (0-22). If provided along with latitude and longitude, sets the initial map position. | |
| after | Yes | Mapbox style for the "after" side. Accepts: full style URL (mapbox://styles/username/styleId), username/styleId format, or just styleId if using your own styles | |
| before | Yes | Mapbox style for the "before" side. Accepts: full style URL (mapbox://styles/username/styleId), username/styleId format, or just styleId if using your own styles | |
| latitude | No | Latitude coordinate for the initial map center (-90 to 90). Must be provided together with longitude and zoom. | |
| longitude | No | Longitude coordinate for the initial map center (-180 to 180). Must be provided together with latitude and zoom. | |
| accessToken | Yes | Mapbox public access token (required, must start with pk.* and have styles:read permission). Secret tokens (sk.*) cannot be used as they cannot be exposed in browser URLs. Please use a public token or create one with styles:read permission. |