---
title: "Legacy alias for pulling files from the primary vault. Paginated: default 25 files per call, follow `next_cursor` for the rest. To fetch specific files, pass `paths` (up to 100 exact paths in one call) instead of pulling their whole directory."
method: POST
path: "/api/mcp/tools/sync_pull"
tags: ["sync"]
---

# Legacy alias for pulling files from the primary vault. Paginated: default 25 files per call, follow \`next_cursor\` for the rest. To fetch specific files, pass \`paths\` (up to 100 exact paths in one call) instead of pulling their whole directory.

`POST /api/mcp/tools/sync_pull`

## Request

- Base URL: `https://api.ainote.dev`
- URL: `https://api.ainote.dev/api/mcp/tools/sync_pull`
- Auth: API key in header `Authorization`

Legacy alias for pulling files from the primary vault. Paginated: default 25 files per call, follow `next_cursor` for the rest. To fetch specific files, pass `paths` (up to 100 exact paths in one call) instead of pulling their whole directory.

## Request body

- object
  - `since` string: ISO 8601 timestamp. Only return files updated after this time. Omit to start from the first page. Deletions are not reported.
  - `path` string: Optional filter: a directory (everything under it, e.g. 'global') or an exact file path (e.g. 'global/MEMORY.md'). A trailing slash is ignored.
  - `paths` string[]: Up to 100 exact file paths fetched in ONE call. Absent paths are listed in `missing`. Cannot be combined with path/since/cursor.
  - `limit` integer: Max files per page. Default 25, max 100.
  - `cursor` string: Pass `next_cursor` from the previous response to fetch the next page.

## Response `200`

Tool executed successfully

- ToolSuccessResponse: Successful tool invocation. `content` mirrors the MCP `tools/call` result shape: an array of content blocks (text and optionally a structured resource payload).
  - `content` object[]
    - `type` 'text' | 'resource'
    - `text` string

## Other responses

- `400`: Invalid arguments or business-rule violation
- `401`: Missing or invalid McpKey

---

[API](https://skmtc.dev/ainote/apis/ainote-mcp-openapi-mirror.md) · [All operations](https://skmtc.dev/ainote/apis/ainote-mcp-openapi-mirror/llms.txt) · [OpenAPI document](https://skmtc.dev/ainote/apis/ainote-mcp-openapi-mirror/revisions/f6c91d85e027?raw)
