Export Nodes
export_nodesExports Drupal node inventory to CSV or Excel on disk, returning only file path and statistics so large audits avoid transferring every node through the conversation.
Instructions
Export a node inventory to a CSV or Excel file on disk.
Writes one row per node (id, type, title, status, dates, author, path) and returns only the file path and statistics, so a 5,000-node audit never has to travel through the conversation. The data comes from JSON:API, so titles and bodies with newlines or accents survive intact.
content_type limits the export to one bundle (for example "article"); unpublished nodes are left out unless asked for. With include_fields a final fields column carries the node's remaining field values as JSON, each string capped at 5000 characters. limit caps the rows written (0 = no cap, 100000 maximum). format is "csv" (UTF-8 with BOM, opens cleanly in Excel) or "xlsx". The file may be written only inside the Drupal root, the system temp directory, or your home directory; without output_path it lands in {Drupal root}/exports/ or /tmp/drupal-mcp-exports/ with a timestamped name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| format | No | csv | |
| output_path | No | ||
| content_type | No | ||
| include_fields | No | ||
| include_unpublished | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||