-
-
Notifications
You must be signed in to change notification settings - Fork 53.1k
Closed
Description
Feature Request
Add a location.get command to the iOS node to expose device location via the Bridge.
Proposed Implementation
iOS side (NodeAppModel.swift):
case ClawdisLocationCommand.get.rawValue:
let location = try await self.locationManager.getCurrentLocation()
let payload = try Self.encodePayload([
"latitude": location.coordinate.latitude,
"longitude": location.coordinate.longitude,
"accuracy": location.horizontalAccuracy,
"altitude": location.altitude,
"timestamp": location.timestamp.timeIntervalSince1970
])
return BridgeInvokeResponse(id: req.id, ok: true, payloadJSON: payload)CLI wrapper (nodes-cli.ts or similar):
clawdis nodes location get --node <idOrNameOrIp>
clawdis location get # auto-pick single connected nodeUse Cases
- Context-aware agent responses ("coffee near me", "weather here")
- Automatic location logging for memory/journaling
- Integration with
goplacesskill for location-based search - Travel tracking and timezone awareness
Privacy Considerations
- Requires user-granted location permissions (CLLocationManager)
- Only accessible when app is foregrounded (consistent with camera/screen)
- Location data stays local unless explicitly shared via agent
Related
- Nodes already support: canvas, camera, screen recording
- Would complement existing
goplacesskill nicely
Happy to implement if you're open to it! 🥷
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels