Choose what to do with an SEO opportunity
onelence_choose_seo_opportunityPlans an SEO opportunity (plan_to_do, optionally with a plan: the change, URLs and the metric to watch), reports it as already done (already_did, with what was changed, where and when), or closes it (will_not_do, with a reason), as on the SEO page. It goes to SEO Work in OneLence; nothing changes on the site or in Search Console, and it cannot be undone from here. Pass the candidate_fingerprint and the window the opportunity was read with. Some opportunities need a plan for every choice, as on the SEO page; without one the choice is refused with param plan. Owners and admins only. The preview needs opportunity_id, candidate_fingerprint, choice. Two steps: call with the change to get a summary and a confirmation_id, show the summary to the user, and only after they agree call again with just confirmation_id.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "onelence_choose_seo_opportunity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Window end, inclusive for a date. Defaults to now. | |
| plan | No | The planned change. Optional with plan_to_do (without it, OneLence plans the suggested next step), but some opportunities need it for every choice. | |
| site | No | Site domain (e.g. example.com) or site id. Defaults to the workspace's newest active site. | |
| start | No | Window start: a date (YYYY-MM-DD) or ISO 8601 date-time. Defaults to 30 days before end. | |
| choice | No | ||
| reason | No | Why, for will_not_do. | |
| application | No | Required with already_did. | |
| opportunity_id | No | The opportunity id from the SEO opportunities list. | |
| confirmation_id | No | Only when applying: the confirmation_id from the preview, after the user agreed. | |
| candidate_fingerprint | No | candidate_fingerprint from the same read; a changed opportunity is refused. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||