Compare Styles Tool
compare_styles_toolCompare two Mapbox styles to identify differences in layers, sources, and properties.
Instructions
Compares two Mapbox styles and reports differences in structure, layers, sources, and properties
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": {
"styleA": "<styleA>",
"styleB": "<styleB>"
},
"name": "compare_styles_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| styleA | Yes | First Mapbox style (JSON string or style object) | |
| styleB | Yes | Second Mapbox style (JSON string or style object) | |
| ignoreMetadata | No | Ignore metadata fields like id, owner, created, modified |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | Yes | Summary of differences | |
| identical | Yes | Whether the styles are identical | |
| differences | Yes | List of differences found |