push_documents
Sync a local folder into a Claude project: upload images as files, convert other UTF-8 files to text documents, with dry-run preview, overwrite protection, and backups.
Instructions
Send a local folder's files into the project: a PDF, PNG, JPEG, GIF, or WebP file goes up as an uploaded file, the way the web UI adds one, and every other file, other image formats included, becomes a text document and must be UTF-8. The default pattern *.md matches no upload, so pass pattern='*' to send everything in the folder. Unchanged files are skipped, differing ones need overwrite=true (the replaced version is backed up locally first), and nothing remote that is missing locally is ever deleted. An uploaded image already in the project is left alone, since it offers no original to compare against or back up. Use dry_run=true to preview, including where the push would stop; that stop is an estimate, since a preview writes nothing to measure, and it cannot count uploads at all. Stops at the first file that would grow the project past its search threshold or its maximum (allow_search_mode=true accepts the threshold); files already pushed stay. Relay any warning in the result to the user verbatim.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| pattern | No | *.md | |
| overwrite | No | ||
| project_id | Yes | ||
| source_directory | Yes | ||
| allow_search_mode | No |