Upload guest site files
upload_guest_site_filesUploads static HTML files with no shell, compiler, ZIP or hash tooling and returns a ready, unpublished release. files is an array of objects, each {path, text} or {path, capture_artifact: {capture_id, artifact_id}}, e.g. files: [{path: "index.html", text: "..."}]. It is not a path-keyed map and takes no size, sha256 or content_type; those manifest maps exist only inside ZIP archives. Up to 16 files: 128 KiB authored UTF-8 text plus 4 MiB of same-site capture_artifact references. The server generates the manifests. A repeated identical operation_id returns the same release.
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": {
"guest_id": "<guest_id>",
"edit_capability": "<edit_capability>",
"operation_id": "<operation_id>",
"expected_generation": "<expected_generation>",
"files": "<files>"
},
"name": "upload_guest_site_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| guest_id | Yes | ||
| operation_id | Yes | ||
| edit_capability | Yes | ||
| expected_generation | Yes |