{"at":"2026-11-23T00:39:07.864Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T00:39:08.722Z","dir":"received","era":"server_discover","message":{"error":{"code":-32602,"data":"","message":"Invalid request parameters"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T00:39:08.873Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T00:39:09.754Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"experimental":{},"prompts":{"listChanged":false},"resources":{"listChanged":false,"subscribe":false},"tools":{"listChanged":false}},"instructions":"Tools for configuring, diagnosing, and troubleshooting an iNAV flight controller over USB — built primarily for flying wings (elevon FPV wings like the TBS Chupito / Mojito) and also for conventional fixed-wing planes.\n\nWORKFLOW: call list_serial_ports() to find the port, then connect(port). All other tools require an active connection.\n\nSAFETY: a live motor test via cli('motor ...') can spin a propeller — it requires props_removed=True, refuses while armed, and is never saved. Every config write auto-backs-up and is dry-run by default.","protocolVersion":"2025-11-25","serverInfo":{"name":"iNAV Flight Controller","version":"1.30.0"}}}}
{"at":"2026-11-23T00:39:09.754Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T00:39:09.754Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T00:39:09.756Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"List all available serial ports.\n\nUse this to find the COM port (Windows) or /dev/tty* (Linux/macOS) for the FC.\nPlug in the FC, run this, and look for a new entry (often labelled 'STM32' or\n'CP210x' for iNAV boards).\n","inputSchema":{"properties":{},"title":"list_serial_portsArguments","type":"object"},"name":"list_serial_ports","outputSchema":{"properties":{"result":{"items":{"additionalProperties":true,"type":"object"},"title":"Result","type":"array"}},"required":["result"],"title":"list_serial_portsOutput","type":"object"}},{"description":"Open the serial connection to the FC and return board identity.\n\nArgs:\n    port: Serial port, e.g. 'COM3' (Windows) or '/dev/ttyACM0' (Linux).\n    baud: Baud rate (default 115200 — matches iNAV's USB VCP default).\n\nReturns board variant, firmware version, target name, API version, build info,\nand a summary of detected sensors.\n","inputSchema":{"properties":{"baud":{"default":115200,"title":"Baud","type":"integer"},"port":{"title":"Port","type":"string"}},"required":["port"],"title":"connectArguments","type":"object"},"name":"connect"},{"description":"Close the serial connection to the FC.","inputSchema":{"properties":{},"title":"disconnectArguments","type":"object"},"name":"disconnect"},{"description":"Read flight-controller identity over MSP.\n\nReturns: FC variant (e.g. 'INAV'), firmware version, board/target name,\nAPI version, build date/time/git revision, and sensors detected.\n\nRequires an active connection (call connect first).\n","inputSchema":{"properties":{},"title":"board_infoArguments","type":"object"},"name":"board_info"},{"description":"Auto-detect which serial port has a flight controller, so you don't guess.\n\nBriefly opens each likely USB-serial port and asks for MSP identity; returns the\nports that answered as an FC (variant + firmware). Then call connect(port).\n\nArgs:\n    baud:      Baud to probe at (default 115200, iNAV's USB VCP default).\n    probe_all: If True, probe EVERY serial port; otherwise only USB-serial-looking\n               ones (safer — avoids poking unrelated devices like Bluetooth/modems).\n","inputSchema":{"properties":{"baud":{"default":115200,"title":"Baud","type":"integer"},"probe_all":{"default":false,"title":"Probe All","type":"boolean"}},"title":"find_fcArguments","type":"object"},"name":"find_fc"},{"description":"Save the current FC config to a timestamped backup file.\n\nRuns 'diff all' in the CLI and writes the output to ./backups/<timestamp>.txt.\n\nNOTE: on iNAV, leaving the CLI reboots the FC, so this reboots and then\nauto-reconnects (~7s). The result includes 'rebooted': True.\n\nArgs:\n    label: Optional suffix added to the filename for easy identification.\n","inputSchema":{"properties":{"label":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Label"}},"title":"backup_configArguments","type":"object"},"name":"backup_config"},{"description":"Restore FC config by replaying a backup file's CLI commands, then save+reboot.\n\nOn iNAV this is atomic: a pre-restore backup is taken, the file's commands are\nreplayed in one CLI session, then SAVED to EEPROM and the FC reboots (we\nreconnect). If any line errors, all changes are rolled back.\n\nArgs:\n    path:    Path to a backup file (as returned by backup_config).\n    confirm: Must be True to apply. Dry-run by default.\n","inputSchema":{"properties":{"confirm":{"default":false,"title":"Confirm","type":"boolean"},"path":{"title":"Path","type":"string"}},"required":["path"],"title":"restore_configArguments","type":"object"},"name":"restore_config"},{"description":"Raw CLI escape hatch — run any iNAV CLI command directly.\n\nRead-only commands (diff, get, status, dump, tasks, help, version) run and the\nFC reboots on CLI exit (auto-reconnected). Write commands (set, aux, feature,\nsmix, ...) require confirm_for_writes=True and are SAVED (persist + reboot),\nsince on iNAV exiting CLI without save discards changes.\n\nSAFETY — motor commands: a 'motor ...' command drives a LIVE motor output and\ncan spin a propeller. It is gated separately from ordinary writes: it requires\nprops_removed=True (NOT confirm_for_writes), refuses if the board is armed, and\nis NEVER saved — it's a momentary bench test that stops when the FC reboots on\nCLI exit.\n\nPrefer the dedicated write tools (they back up and verify). Use this for\none-off commands the other tools don't cover.\n\nArgs:\n    command:             The CLI command to run (without trailing newline).\n    confirm_for_writes:  Set True to allow (and persist) write commands.\n    props_removed:       Set True to allow a live 'motor' test — ONLY after\n                         physically removing all propellers from the aircraft.\n","inputSchema":{"properties":{"command":{"title":"Command","type":"string"},"confirm_for_writes":{"default":false,"title":"Confirm For Writes","type":"boolean"},"props_removed":{"default":false,"title":"Props Removed","type":"boolean"}},"required":["command"],"title":"cliArguments","type":"object"},"name":"cli","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"cliOutput","type":"object"}},{"description":"Run MANY CLI commands in ONE CLI session — a single reboot for the whole batch.\n\nOn iNAV, leaving the CLI ALWAYS reboots the FC, so every separate cli() call\ncosts a full reboot + USB re-enumeration + reconnect (~7s). Doing a run of\ncommands one cli() call at a time means one reboot PER command — the rapid\nreboot cadence is disruptive and can even knock the board into DFU/bootloader\nmode. This collapses N commands into ONE session = ONE reboot. Prefer it for\nany ad-hoc multi-command work (several `get` reads, or several `set` writes).\n(The dedicated write tools — apply_aircraft_setup, set_flight_mode, etc. —\nalready batch internally; this is the escape hatch for everything else.)\n\nBehaviour:\n  - All read-only batch (get/diff/dump/status/tasks/version): the session\n    exits WITHOUT saving — no EEPROM write, nothing persists. Still one reboot\n    (unavoidable on iNAV), but reads are free of a save.\n  - Any write (set/aux/feature/…): requires confirm_for_writes=True; a backup\n    is taken first and the whole batch is SAVED once at the end (persist +\n    reboot). If ANY command is rejected by the FC, the batch exits WITHOUT\n    saving so nothing partial persists (all-or-nothing).\n  - Live `motor` commands and session-control verbs (save/exit/batch) are\n    rejected up front — motor tests must never be saved (use cli(...,\n    props_removed=True) / test_motor()), and the batch manages save/exit itself.\n\nArgs:\n    commands:           Ordered list of CLI commands to run in one session.\n    confirm_for_writes: Set True to run and persist a batch containing writes.\n\nReturns per-command output, whether it saved, the backup path (if it wrote),\nand the measured reboot/reconnect seconds for the single reboot.\n","inputSchema":{"properties":{"commands":{"items":{"type":"string"},"title":"Commands","type":"array"},"confirm_for_writes":{"default":false,"title":"Confirm For Writes","type":"boolean"}},"required":["commands"],"title":"cli_batchArguments","type":"object"},"name":"cli_batch"},{"description":"Save the running config to EEPROM and reboot the FC.\n\nTakes a backup, then 'save' (persist + reboot), then auto-reconnects (~7s).\n\nNOTE: the dedicated write tools already save automatically on iNAV, so you\nrarely need this — it's for persisting changes made via the raw cli() reads\nor to force a clean reboot.\n\nArgs:\n    confirm: Must be True to proceed. Dry-run by default.\n","inputSchema":{"properties":{"confirm":{"default":false,"title":"Confirm","type":"boolean"}},"title":"save_and_rebootArguments","type":"object"},"name":"save_and_reboot"},{"description":"Read live RC channel values via MSP.\n\nReturns up to 16 channel values in microseconds (988–2012 µs typical).\n\nCore UX: flip a switch and watch which channel value changes — that's\nthe aux channel to use when assigning flight modes.\n","inputSchema":{"properties":{},"title":"read_rc_channelsArguments","type":"object"},"name":"read_rc_channels"},{"description":"Read live sensor values: attitude, per-sensor health, and analog (battery).\n\nGood for a quick sanity pass before flying:\n- Attitude should read ~0°/0° when the aircraft is level.\n- All required sensors (gyro, acc) should report OK.\n- Battery voltage should match your pack's cell count.\n","inputSchema":{"properties":{},"title":"read_sensorsArguments","type":"object"},"name":"read_sensors"},{"description":"Read FC status via both MSP and CLI.\n\nReturns MSP_STATUS data (cycle time, sensor bits, CPU load, arming flags)\nplus the human-readable output of the CLI 'status' and 'tasks' commands.\n","inputSchema":{"properties":{},"title":"get_statusArguments","type":"object"},"name":"get_status"},{"description":"List all available flight modes and their current switch assignments.\n\nReturns:\n  - all_modes: every mode the FC knows about (id + name + assigned flag)\n  - assigned_modes: which modes are on which aux channel and range\n  - unassigned_modes: mode names with no switch assignment yet\n  - arm_assigned: bool — critical to know before first flight\n\nTip: call read_rc_channels() to identify which channel your switches use,\nthen use assign_switch() to map modes to them.\n","inputSchema":{"properties":{},"title":"list_flight_modesArguments","type":"object"},"name":"list_flight_modes"},{"description":"Decode the FC's arming-prevention flags into plain English.\n\nThis is the #1 question from new iNAV users. Each set bit is mapped to:\n  - A flag name\n  - A plain-language reason\n  - A concrete fix\n\nAlso checks whether ARM mode is assigned to a switch.\n","inputSchema":{"properties":{},"title":"why_wont_it_armArguments","type":"object"},"name":"why_wont_it_arm"},{"description":"Full diagnostic sweep — the flagship troubleshooter.\n\nCollects: arming flags, sensor health, RC channels, battery, GPS, attitude,\nand mode assignments. Runs all diagnostic rules and returns a prioritized\nproblem list with concrete fixes for each issue found.\n\nUse this when 'something is wrong but I'm not sure what.'\n","inputSchema":{"properties":{},"title":"diagnoseArguments","type":"object"},"name":"diagnose"},{"description":"Define the aircraft hardware profile and generate a configuration plan.\n\nThis is an OFFLINE planner — no FC connection required. Call it first to\nreview the generated CLI commands, then call apply_aircraft_setup() to apply.\n\nArgs:\n    name:         A descriptive name for this aircraft (e.g., \"My FPV Wing\").\n    wing_type:    One of: flying_wing, conventional, vtail, twin_tail, delta.\n    esc_protocol: One of: DSHOT600, DSHOT300, DSHOT150, MULTISHOT, ONESHOT125, PWM.\n    cells:        LiPo battery cell count (e.g. 4 for 4S).\n    fc_target:    Optional FC board name (e.g. MATEKF405). Used for target hints.\n    motor_kv:     Optional motor KV rating (informational only).\n    motor_poles:  Motor pole count for RPM telemetry (default 14; verify with your motor).\n    servo_count:  Optional total servo count (informational).\n    notes:        Free text notes to store with the profile.\n\nReturns a plan dict with:\n    - profile: the stored profile\n    - commands: the CLI commands to apply\n    - summary: human-readable description\n    - warnings: things to verify before/after applying\n","inputSchema":{"properties":{"cells":{"title":"Cells","type":"integer"},"esc_protocol":{"title":"Esc Protocol","type":"string"},"fc_target":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Fc Target"},"motor_kv":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Motor Kv"},"motor_poles":{"default":14,"title":"Motor Poles","type":"integer"},"name":{"title":"Name","type":"string"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Notes"},"servo_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Servo Count"},"wing_type":{"title":"Wing Type","type":"string"}},"required":["name","wing_type","esc_protocol","cells"],"title":"define_aircraftArguments","type":"object"},"name":"define_aircraft"},{"description":"Return the currently declared aircraft profile.\n\nCall define_aircraft() first to set a profile.\n","inputSchema":{"properties":{},"title":"get_aircraft_profileArguments","type":"object"},"name":"get_aircraft_profile"},{"description":"Apply the declared aircraft profile to the FC, then save and reboot.\n\nOn iNAV this is an ATOMIC operation: the commands are applied in one CLI\nsession, backed up first, then SAVED to EEPROM (the only way changes persist)\nand the FC reboots. We reconnect automatically and verify by read-back.\nIf any command fails, ALL changes are rolled back (nothing is saved).\n\nGates:\n  - A profile must be defined via define_aircraft().\n  - Connected and not armed.\n  - confirm=True required (dry-run by default).\n\nArgs:\n    confirm: True to apply+save+reboot. Default False = dry-run (shows commands).\n","inputSchema":{"properties":{"confirm":{"default":false,"title":"Confirm","type":"boolean"}},"title":"apply_aircraft_setupArguments","type":"object"},"name":"apply_aircraft_setup"},{"description":"Compare the FC's actual configuration against the declared aircraft profile.\n\nRuns 'diff all' via CLI, parses key settings, and reports mismatches against\nthe profile declared with define_aircraft(). Also checks if ARM mode is\nassigned to a switch.\n\nUseful after apply_aircraft_setup() or to sanity-check a partially configured FC.\n","inputSchema":{"properties":{},"title":"check_configArguments","type":"object"},"name":"check_config"},{"description":"Recommend a fixed-wing flight-mode/switch layout. Pure knowledge — no FC needed.\n\nSuggests which switches to use for ARM, flight modes (ANGLE/HORIZON/MANUAL),\nand (with GPS) NAV RTH / NAV LAUNCH, with the exact aux channels and µs ranges.\n\nArgs:\n    skill_level:  beginner | intermediate | advanced (tailors the advice).\n    num_switches: How many spare switches you have available.\n    has_gps:      True if a GPS module is installed (enables RTH suggestion).\n\nReturns a layout plan you can hand to assign_switch() to apply.\n","inputSchema":{"properties":{"has_gps":{"default":false,"title":"Has Gps","type":"boolean"},"num_switches":{"default":2,"title":"Num Switches","type":"integer"},"skill_level":{"default":"beginner","title":"Skill Level","type":"string"}},"title":"suggest_mode_layoutArguments","type":"object"},"name":"suggest_mode_layout"},{"description":"Assign a flight mode to an aux channel range (read-modify-write via CLI 'aux').\n\nFinds an existing slot for this mode+channel (to modify) or the first free slot\n(to create), then writes the assignment. Dry-run by default.\n\nGates: connected, not armed, auto-backup before write. Requires confirm=True to apply.\n\nArgs:\n    mode_name:   Exact mode name as shown by list_flight_modes (e.g. \"ANGLE\", \"NAV RTH\").\n    aux_channel: 1-based AUX number (1 = AUX1 = RC channel 5), matching list_flight_modes.\n    range_low:   Range start in µs (900–2100).\n    range_high:  Range end in µs (must be > range_low, ≤ 2100).\n    confirm:     True to apply. Default False = dry-run (returns the command only).\n","inputSchema":{"properties":{"aux_channel":{"title":"Aux Channel","type":"integer"},"confirm":{"default":false,"title":"Confirm","type":"boolean"},"mode_name":{"title":"Mode Name","type":"string"},"range_high":{"title":"Range High","type":"integer"},"range_low":{"title":"Range Low","type":"integer"}},"required":["mode_name","aux_channel","range_low","range_high"],"title":"set_flight_modeArguments","type":"object"},"name":"set_flight_mode"},{"description":"Map a multi-position switch's detents to flight modes in one call.\n\nComputes the µs range for each detent and writes one 'aux' assignment per mode.\nDry-run by default. Gates: connected, not armed, auto-backup before write.\n\nArgs:\n    switch_channel:    1-based AUX number the switch is on (1 = AUX1 = RC channel 5).\n    switch_positions:  Number of detents on the switch: 2, 3, or 6.\n    mode_per_position: Map of position → mode name. Position keys may be\n                       \"low\"/\"mid\"/\"high\" (for 2/3-pos) or \"1\"..\"N\" / \"pos1\"..,\n                       e.g. {\"low\": \"ANGLE\", \"mid\": \"HORIZON\", \"high\": \"MANUAL\"}.\n    confirm:           True to apply. Default False = dry-run.\n","inputSchema":{"properties":{"confirm":{"default":false,"title":"Confirm","type":"boolean"},"mode_per_position":{"additionalProperties":true,"title":"Mode Per Position","type":"object"},"switch_channel":{"title":"Switch Channel","type":"integer"},"switch_positions":{"title":"Switch Positions","type":"integer"}},"required":["switch_channel","switch_positions","mode_per_position"],"title":"assign_switchArguments","type":"object"},"name":"assign_switch"},{"description":"Remove all switch assignments for a flight mode (disables its slots via CLI 'aux').\n\nDry-run by default. Gates: connected, not armed, auto-backup before write.\n\nArgs:\n    mode_name: Exact mode name (e.g. \"HORIZON\", \"NAV RTH\").\n    confirm:   True to apply. Default False = dry-run.\n","inputSchema":{"properties":{"confirm":{"default":false,"title":"Confirm","type":"boolean"},"mode_name":{"title":"Mode Name","type":"string"}},"required":["mode_name"],"title":"clear_flight_modeArguments","type":"object"},"name":"clear_flight_mode"},{"description":"Spin ONE motor briefly for a bench test (direction / wiring / response).\n\n⚠ DANGER: this drives a LIVE motor output. REMOVE ALL PROPELLERS FIRST.\n\nSafety gates (enforced in code):\n  - props_removed=True is REQUIRED (refuses otherwise),\n  - refuses if the FC reports armed,\n  - confirm=True is REQUIRED (dry-run preview otherwise),\n  - throttle clamped to 1000–2000 µs, duration clamped to 0.2–5.0 s,\n  - the motor is ALWAYS commanded back to stop (1000 µs) when the test ends.\n\nThe override is live (MSP, not saved); it also stops if the FC reboots or\nloses power.\n\nArgs:\n    motor:        1-based motor number (1 = motor 1). Only this motor spins;\n                  all others are held at 1000 µs (stop).\n    throttle_us:  Output in µs (1000 = stop, ~1100 = gentle, 2000 = full).\n                  Keep it LOW for a direction check.\n    duration_s:   How long to hold the output (0.2–5.0 s).\n    props_removed: MUST be True — confirms props are physically removed.\n    confirm:      MUST be True to actually run.\n","inputSchema":{"properties":{"confirm":{"default":false,"title":"Confirm","type":"boolean"},"duration_s":{"default":2.0,"title":"Duration S","type":"number"},"motor":{"title":"Motor","type":"integer"},"props_removed":{"default":false,"title":"Props Removed","type":"boolean"},"throttle_us":{"default":1100,"title":"Throttle Us","type":"integer"}},"required":["motor"],"title":"test_motorArguments","type":"object"},"name":"test_motor"},{"description":"Calibrate the accelerometer (zero-level). Fixes most 'not level' / 'accel not\ncalibrated' arming blocks.\n\nSends MSP_ACC_CALIBRATION; iNAV samples for ~2s and saves to EEPROM\nautomatically (no reboot).\n\nBEFORE running: set the board/aircraft on a LEVEL surface in its normal flight\norientation and DO NOT move it until this returns.\n\nGates: connected, not armed, confirm=True (dry-run otherwise).\n","inputSchema":{"properties":{"confirm":{"default":false,"title":"Confirm","type":"boolean"}},"title":"calibrate_accelerometerArguments","type":"object"},"name":"calibrate_accelerometer"},{"description":"Calibrate the compass (magnetometer). Only useful if a compass is installed.\n\nSends MSP_MAG_CALIBRATION; you then have ~30s to rotate the aircraft 360°\naround all three axes. iNAV saves the result automatically.\n\nGates: connected, not armed, confirm=True (dry-run otherwise).\n","inputSchema":{"properties":{"confirm":{"default":false,"title":"Confirm","type":"boolean"}},"title":"calibrate_magnetometerArguments","type":"object"},"name":"calibrate_magnetometer"},{"description":"Read and explain the failsafe configuration (what happens on RC loss).\n\nReads all `failsafe_*` settings via CLI `get failsafe`, summarises the RC-loss\nprocedure in plain English, and flags risky setups (procedure NONE; RTH without GPS).\n\nNOTE: reads over CLI; exiting CLI reboots the FC, so this reboots and reconnects (~7s).\n","inputSchema":{"properties":{},"title":"check_failsafeArguments","type":"object"},"name":"check_failsafe"},{"description":"Set the core failsafe behaviour (atomic CLI write: backup → apply → save+reboot).\n\nOnly the arguments you pass are changed; dry-run by default. For other\nfailsafe_* knobs (distances, angles) use cli('set failsafe_... = N', confirm_for_writes=True).\n\nArgs:\n    procedure:   RC-loss action — one of DROP | LAND | SET-THR | RTH | NONE.\n                 The exact accepted tokens depend on firmware; an invalid value\n                 is rejected by the FC and the whole write is rolled back.\n    throttle_us: failsafe_throttle in µs (used by SET-THR / LAND). Clamped 1000–2000.\n    delay_s:     Guard time after RC loss before failsafe triggers (failsafe_delay).\n                 iNAV stores this in 0.1 s units, so this is converted ×10.\n    off_delay_s: Time the failsafe stage runs before the motor is killed\n                 (failsafe_off_delay), also 0.1 s units (×10).\n    confirm:     True to apply (saves + reboots). Dry-run otherwise.\n\nGates: connected, not armed, auto-backup. RTH without GPS will not work — use DROP/LAND.\n","inputSchema":{"properties":{"confirm":{"default":false,"title":"Confirm","type":"boolean"},"delay_s":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Delay S"},"off_delay_s":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Off Delay S"},"procedure":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Procedure"},"throttle_us":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Throttle Us"}},"title":"set_failsafeArguments","type":"object"},"name":"set_failsafe"},{"description":"List saved config backups under ./backups/, newest first. No FC needed.\n\nReturns each backup's path, modified time, size, line count, and label — so you\ncan pick one to replay with restore_config(path).\n","inputSchema":{"properties":{},"title":"list_backupsArguments","type":"object"},"name":"list_backups"},{"description":"Live GPS status: fix type, satellites, position, speed, HDOP + nav-readiness.\n\nRead-only (MSP_RAW_GPS, no reboot). Use this before relying on RTH or any\nposition-holding navigation mode.\n","inputSchema":{"properties":{},"title":"read_gpsArguments","type":"object"},"name":"read_gps"},{"description":"Enable the GPS feature and set the receiver provider / SBAS (atomic CLI write).\n\nArgs:\n    provider: GPS provider token — e.g. UBLOX | NMEA | MSP (the FC validates it).\n    sbas:     Optional SBAS mode — AUTO | EGNOS | WAAS | MSAS | GAGAN | NONE.\n    confirm:  True to apply (save+reboot). Dry-run otherwise.\n\nGates: connected, not armed, auto-backup. After applying, give the GPS time to\nacquire satellites and check read_gps().\n","inputSchema":{"properties":{"confirm":{"default":false,"title":"Confirm","type":"boolean"},"provider":{"default":"UBLOX","title":"Provider","type":"string"},"sbas":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Sbas"}},"title":"configure_gpsArguments","type":"object"},"name":"configure_gps"},{"description":"Set core fixed-wing navigation / RTH parameters (atomic CLI write).\n\nOnly the arguments you pass are changed. Dry-run by default.\n\nArgs:\n    rth_altitude_m:    Return-to-home altitude, metres (nav_rth_altitude, stored cm).\n    rth_climb_first:   Climb to RTH altitude before heading home (nav_rth_climb_first).\n    rth_allow_landing: NEVER | ALWAYS | FS_ONLY (nav_rth_allow_landing).\n    loiter_radius_m:   Fixed-wing loiter radius, metres (nav_fw_loiter_radius, stored cm).\n    confirm:           True to apply (save+reboot). Dry-run otherwise.\n\nGates: connected, not armed, auto-backup. RTH needs a working GPS and a home fix.\n","inputSchema":{"properties":{"confirm":{"default":false,"title":"Confirm","type":"boolean"},"loiter_radius_m":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Loiter Radius M"},"rth_allow_landing":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Rth Allow Landing"},"rth_altitude_m":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Rth Altitude M"},"rth_climb_first":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Rth Climb First"}},"title":"set_navArguments","type":"object"},"name":"set_nav"},{"description":"Read fixed-wing PID gains, rates, and key filter cutoffs (via CLI).\n\nReturns PIDs grouped by axis, plus rate and low-pass-filter settings.\n\nNOTE: reads over CLI; exiting CLI reboots the FC, so this reboots and reconnects (~7s).\n","inputSchema":{"properties":{},"title":"read_tuningArguments","type":"object"},"name":"read_tuning"},{"description":"Set fixed-wing PID gains for ONE axis (atomic CLI write).\n\nChanges only the terms you pass. Dry-run by default.\n\nArgs:\n    axis:     roll | pitch | yaw.\n    p, i, d, ff: Gains for fw_p_<axis> / fw_i_<axis> / fw_d_<axis> / fw_ff_<axis>.\n    confirm:  True to apply (save+reboot). Dry-run otherwise.\n\n⚠ PID changes alter flight behaviour — change gradually and test carefully.\nGates: connected, not armed, auto-backup.\n","inputSchema":{"properties":{"axis":{"title":"Axis","type":"string"},"confirm":{"default":false,"title":"Confirm","type":"boolean"},"d":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"D"},"ff":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Ff"},"i":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"I"},"p":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"P"}},"required":["axis"],"title":"set_pidArguments","type":"object"},"name":"set_pid"}]}}}
