Set embed allowed origins
set_embed_allowed_originsSet or modify the allow-listed origins for a project's embed widget — the write counterpart to get_embed_snippet's allowed_origins. Each origin is normalized to scheme+host (path and default-port duplicates removed; a bare host gets https://). mode=replace (default) sets the list, add unions with the current list, remove subtracts. An empty resulting list means NO origin restriction is enforced. Returns the resulting list. Identify the project by project_id, or project_name (+ customer_name to disambiguate). Requires a full-access (non-customer) role.
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": {
"origins": "<origins>"
},
"name": "set_embed_allowed_origins"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | replace (default) sets the list to exactly these origins; add unions them with the current list; remove subtracts them. | |
| origins | Yes | Origins to apply, e.g. ["https://book-ai-ze.de"]. A bare host like "book-ai-ze.de" is treated as https://. Empty array with mode=replace clears all restrictions. | |
| project_id | No | Project UUID | |
| project_name | No | Project name (case-insensitive, partial match) — used if project_id is omitted | |
| customer_name | No | Customer name to disambiguate when project_name matches more than one project |