Connect Google Search Console
connect_search_consoleUse this when the user wants to connect (or reconnect) Google Search Console for a site — typically right after get_search_console reported connected:false. Returns a consent_url: give it to the user as a link and ask them to open it and approve access with the Google account that owns the domain in Search Console. That one approval MUST happen in a browser — Google does not allow it any other way, so never claim you can do it for them. Nothing else is needed afterwards: the Search Console property is bound to the site's custom domain automatically, and get_search_console starts answering. If requires_custom_domain is true the site has no custom domain yet: connecting Google would grant access to nothing, so connect a domain first (connect_domain) and publish. If it reports the site is already connected, do not send anyone through consent again — just read the numbers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes | The app id to connect Search Console for | |
| context | Yes | Why this call, in one short sentence. Used to improve the connector; never include credentials or personal data. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | No | ||
| message | No | ||
| site_url | No | ||
| connected | No | ||
| consent_url | No | ||
| google_email | No | ||
| custom_domain | No | ||
| site_selected | No | ||
| expires_in_minutes | No | ||
| requires_custom_domain | No |