Copy imported images
copy_imported_imagesCopies the images a site made with Import a website saved under public/ (a project with IMPORTED.md) into the project you are rebuilding it in, at the same paths, so /assets/... image URLs keep working. Without paths it copies every image the import saved that this project doesn't have yet, up to 30 per call: call it again while the answer says more are left. Images over 5 MB, fonts and other files aren't copied; the answer lists what the owner should upload in the Assets panel. Lottie .json files are text: read_file them on the imported project and write_file them to the same path. Leaves the copies unsaved, like every edit. Skill rebuild-imported-site.
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": {
"projectId": "<projectId>",
"importedProjectId": "<importedProjectId>"
},
"name": "copy_imported_images"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | No | Only these images, as paths in the imported project such as public/assets/hero.webp. Leave out to copy the rest of them | |
| projectId | Yes | The project the images go to (the rebuild), not the imported one | |
| importedProjectId | Yes | The project Import a website created (it has IMPORTED.md) |