Preview Mapbox Style Tool
preview_style_toolGenerate a preview URL for a Mapbox style by specifying a style ID and public access token. View style with optional title and zoom wheel control.
Instructions
Generate preview URL for a Mapbox style using an existing public token
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": {
"styleId": "<styleId>",
"accessToken": "<accessToken>"
},
"name": "preview_style_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Show title in the preview | |
| styleId | Yes | Style ID to preview | |
| zoomwheel | No | Enable zoom wheel control | |
| 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 an existing public token or get one from list_tokens_tool or create one with create_token_tool with styles:read permission. |