Get ZIP Upload URL
artifact-get_zip_upload_urlStep 1 of the zip import flow for artifact-create: for imports with binaries or over roughly 100 KB of source; small text-only projects pass files inline.
Flow:
Call this tool: returns zipUploadId and presigned uploadUrl.
HTTP PUT the project zip to uploadUrl.
Call artifact-create (type import) with zipUploadId within 30 minutes of the last upload; the zip becomes the first commit and zipUploadId is single-use.
Rules: zip max 50MB; source, config, assets only — no node_modules or build output. Shell/executable files are skipped and reported. uploadUrl is a secret.
Returns: success, zipUploadId, uploadUrl, uploadUrlExpiresAt, nextSteps.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| purpose | No | Reserve the upload for a specific artifact kind. Omit for app or markdown source. Pass "asset" to import images or video — an asset artifact can ONLY be created from an upload reserved this way, and an asset-reserved upload can only become an asset. |