cursor_history_export
Export a Cursor AI chat session to Markdown or JSON for sharing, backup, or analysis. Choose a session by ID or list index and get formatted content ready to use.
Instructions
Export a Cursor AI chat session to Markdown or JSON format. Returns the formatted content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Export format: 'markdown' for human-readable, 'json' for structured data | markdown |
| sessionId | No | Exact native session UUID returned by list/search. Case-sensitive; do not normalize. | |
| workspace | No | Workspace path. Reuse the same scope for listing and reading a session index. | |
| sessionIndex | No | One-based index from a list with the same workspace scope. Prefer sessionId for reuse. | |
| includeCrossWorkspaceSources | No | Opt in to complementary sources outside this workspace, only for already selected session IDs. Default: false. |