You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/tools/__snapshots__/tool-naming-convention.test.ts.snap
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ exports[`Tool Naming Convention should maintain consistent tool list (snapshot t
39
39
},
40
40
{
41
41
"className": "ListStylesTool",
42
-
"description": "List all styles for a Mapbox account",
42
+
"description": "List styles for a Mapbox account. Use limit parameter to avoid large responses (recommended: limit=5-10). Use start parameter for pagination.",
Copy file name to clipboardExpand all lines: src/tools/preview-style-tool/PreviewStyleTool.schema.ts
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,15 @@ import { z } from 'zod';
2
2
3
3
exportconstPreviewStyleSchema=z.object({
4
4
styleId: z.string().describe('Style ID to preview'),
5
+
accessToken: z
6
+
.string()
7
+
.startsWith(
8
+
'pk.',
9
+
'Invalid access token. Only public tokens (starting with pk.*) are allowed for preview URLs. Secret tokens (sk.*) cannot be used as they cannot be exposed in browser URLs.'
10
+
)
11
+
.describe(
12
+
'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.'
0 commit comments