JSON to CSV: turn records into a spreadsheet-ready file
submit_json_to_csv_rowsConvert a JSON document into a CSV file. Accepts an array of objects, a single object, or an API envelope such as {"data": [...]}. The header is the sorted union of every record's keys, nested values are kept as compact JSON, and records with missing keys are padded and reported. Choose this when you have JSON records and need a CSV file: an array of objects, a single object, or an API envelope such as {"data": [...]}. The header is the sorted union of every record's keys, so a record with an extra field still contributes a column. Do not choose this when you need the opposite direction (use csv-to-json-rows), when the JSON must be validated against a schema (use json-schema-validation), or when the records need cleaning first (run csv-clean on the output). Example requests: Turn this API response into a CSV I can open in Excel. | Convert this JSON export into CSV for a bulk database import. | Flatten this list of JSON records into a spreadsheet.
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": {
"inputs": "<inputs>",
"authorized_by": "<authorized_by>"
},
"name": "submit_json_to_csv_rows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | Yes | ||
| quote_id | No | The quote_id returned by POST /v1/jobs. Required to authorize a priced capability; the service rejects a priced job that does not name the quote it issued. | |
| authorized_by | Yes | Identifier of the human or agent authorizing this job. | |
| accepted_price | No | The amount accepted, exactly as quoted (for example "5.00" or 5). Checked against the stored quote, so a price that moved between quote and authorize is refused rather than silently absorbed. Optional, but sent to make the acceptance explicit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quote | No | ||
| state | Yes | ||
| job_id | Yes | ||
| artifacts | No | ||
| access_token | No | Per-job credential. Present it as the X-Job-Token header to read the job or list it. Keep it; it is the only credential for this job. | |
| verification | No | Independent verification. verification.ok = false means the job failed, not a partial success. | |
| capability_id | No |