Attach a variable to a site
attach_variableExpose one saved variable to ONE owned site's Worker env (plain_text binding). Opt-in per site — unattached variables are never injected, because the Worker runs the site's own code. Takes effect on the site's next function deploy.
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": {
"slug": "<slug>",
"name": "<name>"
},
"name": "attach_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | variable name to attach, e.g. SUPABASE_URL | |
| slug | Yes | owned site slug |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |