export_work
Export whole works of a TLG author to XML, Markdown, or plain text files; omit works to export all, and get the written file paths.
Instructions
Export whole works of a TLG author to files, using Diogenes' TEI XML exporter. format: xml (TEI P5), markdown, or text. Omit works to export every work of the author. Returns the paths written.
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": {
"author": "<author>",
"format": "<format>",
"out_dir": "<out_dir>"
},
"name": "export_work"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| works | No | Work numbers; default all. | |
| author | Yes | TLG author number. | |
| format | Yes | ||
| out_dir | Yes | Absolute directory to write into (created if missing). |