update_global_source
Replaces global source's full configuration after review and confirmation, with safeguard against unintended size reductions. Use for complete rewrites; prefer element-level edits for smaller changes.
Instructions
Replace full source of a global source. IMPORTANT: Before calling this tool, you MUST:
Read existing source with get_global_source_detail first
Show the user what will change and get explicit confirmation
NEVER call without user approval — this replaces the ENTIRE source Safeguarded: blocks if new source is <50% of existing size. For element-level changes, prefer update_global_source_element instead.
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": {
"global_source_id": "<global_source_id>"
},
"name": "update_global_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | New source configuration (JSON object) | |
| allow_shrink | No | Allow the source to shrink by more than half: set it when native elements replaced an oversized embed or custom_css and you have read it first. | |
| global_source_id | Yes | Global source ID |