MCP
file:export
Exports a workbook file.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
sheet | string | yes | The sheet named on the wire, validated to exist for every format. |
format | "json", "csv", "xlsx" | yes | Every variant PARSES. |
Returns
| Name | Type | Required | Description |
|---|---|---|---|
format | "json", "csv", "xlsx" | yes | Every variant PARSES. |
content | string | yes | — |
Schema
Request payload, as JSON Schema:
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Payload",
"description": "`commandId` is dropped, the same Batch-0 convention `edit::set_cell::Payload` already uses.",
"type": "object",
"properties": {
"sheet": {
"description": "The sheet named on the wire, validated to exist for every `format`.",
"type": "string"
},
"format": {
"$ref": "#/$defs/Format"
}
},
"required": [
"sheet",
"format"
],
"$defs": {
"Format": {
"description": "Every variant PARSES.",
"type": "string",
"enum": [
"json",
"csv",
"xlsx"
]
}
}
}Response payload, as JSON Schema:
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Output",
"description": "`file:export`'s typed result.",
"type": "object",
"properties": {
"format": {
"$ref": "#/$defs/Format"
},
"content": {
"type": "string"
}
},
"required": [
"format",
"content"
],
"$defs": {
"Format": {
"description": "Every variant PARSES.",
"type": "string",
"enum": [
"json",
"csv",
"xlsx"
]
}
}
}