Import a whole site
import_sitePut a whole existing website into a Clay site's draft in one go, with its paths and file types as they are. Give exactly one source: zip_url (a public address of a .zip of the site's files, which Clay downloads), zip_base64 (the zip's bytes) or from_address (the address of a live site: Clay copies its pages and every file they use, same address only, up to max_pages). By default the draft becomes the import (files the import does not have are taken out of the draft; set replace false to keep them). The plan's file limits apply. The live site does not change. Returns what was imported, what was left out and why, and an address where the draft can be seen. A site behind a password cannot be copied by its address; its files as a zip can.
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": {
"site": "<site>"
},
"name": "import_site"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | the site's clay.site name (subdomain) or its id | |
| replace | No | default true: the draft becomes the import | |
| zip_url | No | a public http(s) address of a .zip of the site's files | |
| max_pages | No | from_address only: the most pages to copy, default 60 | |
| zip_base64 | No | the .zip's bytes, base64 (only when there is no address) | |
| from_address | No | the address of a live website to copy, e.g. https://example.com |