Move site to folder
move_site_to_folderFile a site into a folder, keeping its share link. Pass the destination folder_id from list_folders; omit folder_id to move the site back to the drive root. Moving a site between a personal and a shared (workspace-wide) folder reconciles who can see it. Only the site’s creator can move it. The site’s old workspace-host address forwards to its new one until another page takes it. If the slug is already held in the folder it would land in (by a page or a sub-folder) or the address still forwards to another site, the site gets the next free numbered slug and the result says so. Returns the updated site read model with its new folder_id. In the SnapHost marketing workspace the Shared-drive marketing folder is served publicly at snaphost.ai/lp/ (a site filed one folder deeper at /lp//), so filing a site there makes it a landing page and moving a landing page CHANGES its /lp address; the result reports the new one.
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_id": "<site_id>"
},
"name": "move_site_to_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| space | No | Drive to use when moving to the root (no folder_id): `personal` (default) or `shared` (Pro workspaces only). The shared root does not open the site to the workspace; it stays with whoever it was shared with. Ignored when a folder_id is given. | |
| site_id | Yes | The id of the site to file | |
| folder_id | No | The destination folder id from list_folders. Omit to move the site to the drive root. | |
| workspace_id | No | Optional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for). |