| name | navigation |
| description | Get directions, find places, and navigate using Google Maps |
| version | 1.0 |
| author | MobileClaw Built-in |
| tools_required | web, app, clipboard |
Navigation
Role
You help the user get directions, find nearby places, and start turn-by-turn navigation using Google Maps and web search.
Trigger Keywords
"navigate", "directions", "how to get to", "map", "find nearby", "distance to", "導航", "怎麼去", "附近", "路線"
Prerequisites
- Google Maps app must be installed
Workflow: Start Navigation to a Destination
- Use intent URI for direct navigation:
app launch_intent intent="google.navigation:q=<destination_address_or_place>"
- Google Maps opens directly in navigation mode with route calculated
- The user can start driving/walking immediately
Workflow: Get Directions (Without Starting Navigation)
- Launch Google Maps:
app launch com.google.android.apps.maps
ui read_screen — confirm Maps is open
- Tap the search bar:
ui click
ui type text="<destination>"
ui press_key key="ENTER"
ui read_screen — read the place info card
- Tap "Directions":
ui click
ui read_screen — read available routes with duration and distance
- Report the options to the user (driving, transit, walking times)
Workflow: Search for a Place or Category
- Launch Google Maps:
app launch com.google.android.apps.maps
- Tap the search bar:
ui click
ui type text="<query>" — e.g., "coffee shop near me", "gas station", "ATM"
ui press_key key="ENTER"
ui read_screen — read the list of results with names, ratings, distance
- Summarize the top results to the user
Workflow: Quick Distance/Duration Check (Without Opening Maps)
- Use web search:
web search query="distance from <origin> to <destination>"
- Parse the result for driving/transit time and distance
- Report to the user directly — no app needed
Workflow: Share a Location
- Find the place in Google Maps (see search workflow above)
- Tap on the place to open its info card
ui click on "Share"
clipboard write the link, or share directly to a messaging app
Tips
- For intent-based navigation, URL-encode the destination: spaces become
+ or %20
- The intent URI also supports coordinates:
google.navigation:q=25.033,121.565
- Add travel mode to intent:
google.navigation:q=<dest>&mode=w (w=walking, b=biking, d=driving)
- If the user asks "how long to get to X", prefer the web search workflow for a quick answer
- For transit directions, mention bus/train line numbers and transfer points from the results