Preview a Markdown vault batch
preview_importDry run for an agent-led import of notes into Imported//. The server cannot read your disk: read each file yourself and send its text as files: [{ relativePath, markdown }], relativePath being the path inside the folder you import (notes/idea.md: / separators, no leading / or ./ or ..). Only .md files: save a ChatGPT or Claude memory list, JSON or other text as Markdown first and leave attachments out. Names starting with "." are skipped. Returns counts, conflicts (a different file already at the destination is kept, not overwritten; use a new label to import a changed copy), skipped files with reasons, and an expiring batchId; writes no memory. Max 100 files, 64 KiB/file and 128 KiB per call including paths; for more, call again per group. Up to 8 previews can wait at once: apply one, or wait 15 minutes. Refuses unsafe or oversize inputs. Selection: include/exclude path prefixes. stage: false only checks (no batchId, nothing held). Show preview before apply_import.
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": {
"label": "<label>",
"files": "<files>"
},
"name": "preview_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| label | Yes | Name for this import; notes go to Imported/<label>/. It is a folder name: letters (any alphabet), digits, "-" and "_" are kept; spaces and punctuation become "-". | |
| stage | No | false: check only. Same answer without a batchId; nothing is held, so nothing can be applied from it | |
| exclude | No | Leave these folder or file path prefixes out, e.g. "Private" (prefixes, not globs) | |
| include | No | Only these folder or file path prefixes, e.g. "Projects" (prefixes, not globs) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| counts | Yes | ||
| limits | Yes | ||
| staged | No | ||
| batchId | No | ||
| skipped | Yes | ||
| toWrite | Yes | ||
| conflicts | Yes | ||
| expiresAt | No | ||
| namespace | Yes | ||
| unchanged | Yes | ||
| secretGuard | No | ||
| unchangedPaths | No |