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
* feat: add photo URLs to maps_place_details via maxPhotos param
- Add optional maxPhotos param (0-10, default 0) to maps_place_details
- Default returns photo_count only (no extra tokens)
- When maxPhotos > 0, resolves actual photo URLs via getPhotoMedia API
- Add getPhotoUri method to NewPlacesService
- Update CLI exec to pass maxPhotos param
- Update tool description to document photo behavior
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* docs: update skill docs and READMEs for maxPhotos param
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* test: add place_details photo tests (147 → 159)
- Test photo_count always returned
- Test no photos array when maxPhotos omitted
- Test maxPhotos=1 returns valid HTTPS photo URL with dimensions
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Get full details for a place by its place_id (from search results). Returns reviews, phone, website, hours, photos.
125
+
Get full details for a place by its place_id (from search results). Returns reviews, phone, website, hours. Set `maxPhotos` to include photo URLs (default: 0 = no photos, saves tokens).
Copy file name to clipboardExpand all lines: src/tools/maps/placeDetails.ts
+9-3Lines changed: 9 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -4,20 +4,26 @@ import { getCurrentApiKey } from "../../utils/requestContext.js";
4
4
5
5
constNAME="maps_place_details";
6
6
constDESCRIPTION=
7
-
"Get comprehensive details for a specific place using its Google Maps place_id. Use after search_nearby or maps_search_places to get full information including reviews, phone number, website, opening hours, and photos. Returns everything needed to evaluate or contact a business.";
7
+
"Get comprehensive details for a specific place using its Google Maps place_id. Use after search_nearby or maps_search_places to get full information including reviews, phone number, website, and opening hours. Set maxPhotos (1-10) to include photo URLs — omit or set to 0 for no photos (saves tokens).";
8
8
9
9
constSCHEMA={
10
10
placeId: z.string().describe("Google Maps place ID"),
11
+
maxPhotos: z
12
+
.number()
13
+
.int()
14
+
.min(0)
15
+
.max(10)
16
+
.optional()
17
+
.describe("Number of photo URLs to include (0 = none, max 10). Omit to skip photos and save tokens."),
0 commit comments