goto_location
Command a flying drone to navigate to a specified GPS waypoint and loiter there. Sets latitude, longitude, altitude above launch, and optional heading, while enforcing geofence and altitude limits.
Instructions
Fly to a single waypoint and loiter there. The vehicle must be flying already (armed + taken off).
Args: latitude_deg: Target latitude (WGS84). longitude_deg: Target longitude (WGS84). relative_altitude_m: Target altitude above the launch point, in meters. Checked against the altitude ceiling. yaw_deg: Heading at the target, 0 = north (default 0).
Rejected in readonly mode. The target is also checked against the soft geofence around home (MAVLINK_MCP_GEOFENCE_RADIUS_M, default 200 m). Returns {"goto_started": true, "target": {...}} — travel is asynchronous; poll get_telemetry to track progress.
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": {
"latitude_deg": "<latitude_deg>",
"longitude_deg": "<longitude_deg>",
"relative_altitude_m": "<relative_altitude_m>"
},
"name": "goto_location"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| yaw_deg | No | ||
| latitude_deg | Yes | ||
| longitude_deg | Yes | ||
| relative_altitude_m | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||