Skip to content

feat: add photo URLs to maps_place_details#59

Merged
cablate merged 3 commits intomainfrom
feat/place-details-photos
Mar 18, 2026
Merged

feat: add photo URLs to maps_place_details#59
cablate merged 3 commits intomainfrom
feat/place-details-photos

Conversation

@cablate
Copy link
Owner

@cablate cablate commented Mar 18, 2026

Summary

  • Add optional maxPhotos param (0-10, default 0) to maps_place_details
  • Default returns photo_count only — zero extra token overhead
  • When maxPhotos > 0, resolves actual Google Photos URLs via getPhotoMedia API
  • URLs are directly accessible lh3.googleusercontent.com links

Test plan

  • Build passes
  • 147 smoke tests pass
  • CLI exec tested with maxPhotos: 2 — returns valid photo URLs
  • Default (no maxPhotos) returns photo_count only, no photos array

🤖 Generated with Claude Code

cablate and others added 3 commits March 18, 2026 13:18
- 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>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- 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>
@cablate cablate merged commit 13afbd9 into main Mar 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant