export_records
Export records from a REDCap project with options for fields, records, events, raw or labeled values, and checkbox labels.
Instructions
Export records from the REDCap project.
Args: fields: Specific field names to export. None exports all fields. records: Specific record IDs to export. None exports all records. events: Specific event names to export (longitudinal projects only). raw_or_label: 'raw' for coded values, 'label' for choice labels. export_checkbox_label: Export checkbox field labels instead of 0/1. limit: Maximum number of records to return (default 1000).
Returns: JSON array of records.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "export_records"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| events | No | ||
| fields | No | ||
| records | No | ||
| raw_or_label | No | raw | |
| export_checkbox_label | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |