osm_upload_gpx
Upload GPX track data as an OpenStreetMap GPS trace and set visibility to share track points anonymously or publicly under the user's name.
Instructions
Upload a GPX file (pass its XML text). The file must contain points with timestamps. visibility is required. Every visibility OSM accepts publishes the track points, and GPS traces can reveal where someone lives, works and travels: ask the user which one they want ('trackable' shares the points anonymously (ordered, with timestamps); 'identifiable' also lists the trace publicly under the user's name.) and never pick for them. Needs the read_gpx / write_gpx OAuth scope (add it to OSM_SCOPES and the OSM app registration). Uploads are processed asynchronously by OSM.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"gpx": "<gpx>",
"description": "<description>",
"visibility": "<visibility>"
},
"name": "osm_upload_gpx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gpx | Yes | GPX XML content | |
| tags | No | ||
| filename | No | track.gpx | |
| visibility | Yes | 'trackable' shares the points anonymously (ordered, with timestamps); 'identifiable' also lists the trace publicly under the user's name. | |
| description | Yes |