Update site context
update_site_contextSave or amend what a site is for. Provided context fields are merged into the existing context (events merges per entry); a null value deletes its key. name/domain update the site record itself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | update the site's display name | |
| site | No | the site's data-site code, from its script tag or list_sites. Omit when the account has a single site. In a tracked project, read the code from the script tag before asking the user. | |
| goals | No | what the owner wants from it; null deletes | |
| notes | No | open agenda items to check at session start; null deletes | |
| domain | No | update the site's domain | |
| events | No | map of event name -> one-line meaning; record one whenever you add tracking. null deletes an entry. | |
| funnel | No | the site's canonical conversion steps, same shape as the funnel tool's steps. null clears it. | |
| audience | No | who the site is for; null deletes | |
| description | No | what the site is; null deletes | |
| retention_days | No | shorten this site's data retention below the plan default; 0 restores plan-default retention. DESTRUCTIVE: shortening schedules permanent deletion of older events at the nightly prune. Confirm with the owner first. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| site | Yes | ||
| domain | Yes | ||
| context | Yes | ||
| updated | Yes | ||
| retention | Yes |