Update AI visibility prompt
update_visibility_promptChanges one AI Visibility prompt of a site, the same as the prompt edit on the AI Visibility page. Pass text with expectedRevision (the revision from get_visibility) to edit the text, or state (active, paused or archived) to change the state, never both. Keytomic keeps or sets the topic and sets the prompt type of an edited text. A text edit of an Active prompt that changes the text or the prompt type makes a new prompt with a new promptId and archives the old one, which keeps its answers: use the promptId of the result in later calls. A text edit of a prompt that is not Archived and that changes neither, and a state change to the state the prompt already has (archived to archived too), change nothing and succeed. An Archived prompt cannot change otherwise. Refusals: prompt_revision_conflict (a change of an Archived prompt, or a text edit with an old expectedRevision that changes the text or the prompt type), active_prompt_limit_reached (making a prompt Active past the plan’s Active limit), prompt_duplicate (the new text is already saved for the market), saved_prompt_limit_reached, prompt_not_found (no such prompt in the market) and check_running (a check runs now). It starts no check.
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": {
"projectId": "<projectId>",
"promptId": "<promptId>"
},
"name": "update_visibility_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | The new text of the prompt. Needs expectedRevision. | |
| state | No | The new state of the prompt. | |
| promptId | Yes | Prompt to change, from get_visibility. | |
| projectId | Yes | Site to act on, from list_sites. | |
| expectedRevision | No | With text: the revision of the prompt that the user edits, from get_visibility. |