Export dives
logbook_export_divesExport PADI logbook dives as CSV or JSON, oldest first, filtered by date range; large logs return in parts using offset and next_offset.
Instructions
Export the dives of the PADI logbook (all, or a date range), oldest first, with every field, as CSV (for a spreadsheet) or JSON (for a backup). Large logbooks come in parts: at most limit dives per answer (default 50 for json, 100 for csv, up to 500); call again with offset=next_offset for the next part. The answer has two parts: a JSON summary (format, total, count, offset, next_offset, units), then the file content as text. Values are in the units of the summary.
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": {
"format": "<format>"
},
"name": "logbook_export_dives"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Only dives on or before this date (YYYY-MM-DD) | |
| from | No | Only dives on or after this date (YYYY-MM-DD) | |
| limit | No | Dives in this part, 1-500 (default 50 for json, 100 for csv). Large logbooks come in parts | |
| units | No | Units of the numbers in this call and its answer: auto (the PADI logbook setting), metric (m, degrees C, bar, kg, litres) or imperial (ft, degrees F, psi, lb, cubic feet). Default: the server setting. | |
| format | Yes | csv (a table, one row per dive) or json (a list of full dives) | |
| offset | No | Dives to skip, oldest first (use next_offset of the previous part) |