Import Chats
sync_workspace_dataImport and normalize conversations from pasted content, local files, or editor transcript folders into the archive, handling ChatGPT, Claude, Cline/Continue, JSONL and Markdown formats.
Instructions
Import conversations into the archive from pasted content, a local file, or an editor's transcript folder, normalizing ChatGPT, Claude, Cline/Continue JSON, JSONL and Markdown formats. Use it to bring outside history in; to save the current conversation use manage_session_state(action='save'). source_type 'raw_content': payload is the chat JSON (string or object); 'local_path': payload is a file path inside the archive, the current directory, the temp directory or a configured transcripts folder (other paths are refused); 'agent_transcripts': scans the transcripts folder for 'client' ('cursor', 'continue', 'cline', 'copilot', or source_dir) and imports up to 'limit' newest files, skipping ones already imported; 'cursor_agent_transcripts' is a deprecated alias for Cursor. Writes new JSON files into the archive and updates the search index; never deletes. Imports with an existing title overwrite that chat. Returns a confirmation string for single imports, or {imported: [{file, status, dest}], errors, total_scanned} for folder syncs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum newest transcript files to scan for folder syncs. | |
| title | No | Archive name for 'raw_content' or 'local_path' imports. Defaults to a timestamped or source-derived name. | |
| client | No | Archive namespace to import into; for 'agent_transcripts' it also picks the source editor ('cursor', 'continue', 'cline', 'copilot'). Omit for 'default'. | default |
| payload | No | Chat JSON for 'raw_content', a file path for 'local_path', or a folder path for 'agent_transcripts' (same as source_dir). | |
| source_dir | No | Override folder to scan for 'agent_transcripts'; must be inside an allowed root. | |
| source_type | Yes | Where to import from (see the tool description). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |