Add external origins
add_external_originsTrust one or more external https origins for a site, adding to (never replacing) its CSP allowlist. This is the follow-up when publish_site / update_site reports origins the security policy will block and the owner confirms trusting them. Only pass origins the owner has explicitly approved. Each entry must be a bare https://host[:port] with no path. This is a paid capability. To remove or replace origins, use set_render_options instead. Returns the full updated render options.
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>",
"origins": "<origins>"
},
"name": "add_external_origins"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origins | Yes | The https origins to add to the trusted list (e.g. ["https://cdnjs.cloudflare.com"]) | |
| site_id | Yes | The id of the site to configure | |
| 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). |