chats_export
Export a single chat from supported AI platforms to durable Markdown, YAML, JSON, HTML, or PDF files under a chosen directory; optionally queue the export as an async job.
Instructions
Export one chat via extension builders and write files under exportDir (returns paths). Prefer for durable files; use chats_get for in-memory payload, jobs_enqueue kind=export/export_batch for bulk/async queues. Set async:true to return job_id instead of blocking. Requires browsers_bind; writes to disk.
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": {
"platform": "<platform>",
"chatId": "<chatId>",
"formats": "<formats>"
},
"name": "chats_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| async | No | When true, enqueue via jobs and return job_id instead of blocking | |
| branch | No | Conversation branch: active thread only, or all branches when the provider supports them | |
| chatId | Yes | Chat id to export | |
| outDir | No | Absolute path under HOME; default server exportDir | |
| formats | Yes | One or more export formats to write | |
| platform | Yes | Provider id: chatgpt | grok | grok-x | claude | copilot | qwen | deepseek | perplexity |