56,641 tools
get_friend_location
Return the most recent location received from a specific friend (by their anonId).
remove_incoming_share
Delete the local record of an incoming shared trip. The friend keeps sharing — you just stop following.
is_sharing
Return true iff the user is currently broadcasting a trip.
list_peer_statuses
Return the current WebRTC connection status of every paired device: disconnected, connecting, connected, reconnecting, unreachable, revoked,…
list_paired_devices
List every WebRTC-paired device the user has, with last-seen timestamps.
revoke_paired_device
Remove a paired device from the local store and close its WebRTC connection. ⚠️ Destructive: you'll need to re-pair to share trips with them…
create_pairing_offer
Initiate a pairing session: generate an SDP offer. The returned `offer` is an opaque JSON string — paste it into the friend's portami (or ha…
join_with_pairing_offer
Joiner side: take an SDP offer from the initiator and produce an SDP answer to send back.
finish_pairing_as_initiator
Initiator side: paste the joiner's SDP answer here to complete the handshake.
reset_pairing
Abort the current pairing flow and clear all transient state. Useful when a flow stalls.
get_pairing_status
Return the current pairing phase (idle, awaiting-peer, verifying, transferring, syncing, success, error) and the pair-code for verification.
create_invite_link
Create a /connect deeplink that bundles an SDP offer with the emitter's anonId + alias + optional tripShareId. The friend opens it in portam…
build_answer_back_url
Joiner side: produce the /connect-back URL containing the SDP answer, to be opened by the initiator.
plan_journey
Plan a multi-leg journey from a coordinate A to coordinate B. Optional filters: departAfter (ms epoch), maxWalkSpeedMs (default 1.4), maxBoa…
list_incidents
List active service incidents. Optional routeId filter. Auto-hides resolved + auto-expired.
report_incident
Report a service incident (cancellation, delay, diversion, other) on a route. Signed.
resolve_incident
Mark an incident as resolved. Signed.
list_stop_alerts
List local stop alerts. Either pass a routeId to filter, or omit to list every alert on the device.
add_stop_alert
Add a stop alert. Provide either `triggerMinutes` (ETA-based) or `triggerDistanceM` (distance-based) or both.
remove_stop_alert
Delete a stop alert by id.
reset_stop_alerts_for_route
Reset the "triggered" flag on every alert for a route so they'll fire again on the next trip.
clear_stop_alerts
Delete every stop alert on the device. ⚠️ Destructive.
get_settings
Return current settings: language, collaborate flag, testing mode + GPS source, and server health snapshot.
set_collaborate_enabled
Enable or disable the "Modo colaborador" flag. When ON, every GPS sample of an active trip is POSTed (signed) to the server. OFF by default …
set_testing_mode
Enable or disable testing mode. When ON, MSW intercepts every API call and the GPS source becomes synthetic (unless you also pass gpsMode="r…
set_language
Change the UI language (es/ca/en). Reload the page for the change to apply everywhere.
get_current_position
Return the most recent GPS sample (or wait for one if none has arrived). May trigger the browser permission prompt on first call.
get_geolocation_permission
Return the current geolocation permission state without requesting it. One of: unknown, granted, denied, prompt, error.
export_my_routes_geojson
Build a signed GeoJSON FeatureCollection containing all routes the user created + their proposals. Returns the full JSON so the agent can wr…
import_geojson
Import a previously-exported FeatureCollection. Verifies the signature; if invalid, marks the import as read-only (no edits applied). Use `r…
list_bus_reports
List observations about specific buses on a route, newest first.
report_bus
Record an observation about a specific bus on a route (license plate, stop button presence, photo, notes). Signed.
send_rescue_me
Broadcast a panic alert to every connected paired peer. Use ONLY when the user is in trouble. The receivers see a top-of-screen banner with …
list_pending_rescues
List rescue alerts received from paired friends that have not yet been acknowledged.
list_all_rescues
List every rescue alert currently in memory (acknowledged + pending).
acknowledge_rescue
Locally mark a rescue alert as acknowledged (no effect on the sender). Use `remove_rescue` to also drop it from memory.
remove_rescue
Drop a rescue alert from the in-memory store.
get_rescue_ttl_ms
Return the in-memory TTL (ms) applied to rescue alerts after acknowledgement. Default 5 minutes.
get_server_health
Return the current health snapshot: status (unknown | healthy | degraded | offline), lastCheckedAt, consecutiveFailures, apiBase.
get_api_base
Return the configured API base URL. Empty string means the app is using MSW mocks (dev mode, or testing enabled).