set_article_visibility
Publish, change sharing, or unpublish an article by setting its visibility to PUBLIC, LINK_ONLY, or PRIVATE. Use when the writer asks to control what the outside world can see.
Instructions
Publish an article, change how it is shared, or take it down: PUBLIC (anyone can find it), LINK_ONLY (anyone with the link), PRIVATE (only the writer — unpublishes). This changes what the outside world can see, so do it when the writer asks, not as a step in a writing task. Making an article non-private also switches on the writer's public profile page if it was off, stamps publishedAt the first time, and derives a slug from the title if the article has none. Pass slug to choose one (3–60 characters: lowercase letters, digits, hyphens; unique among the writer's articles). allowSeoIndexing is separate consent for search engines; omit it to leave it unchanged. Needs the 'publish' API-key scope.
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": {
"articleId": "<articleId>",
"visibility": "<visibility>"
},
"name": "set_article_visibility"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | URL slug for the public page | |
| articleId | Yes | Article ID | |
| visibility | Yes | ||
| allowSeoIndexing | No | Let search engines index the public page. Omit to leave unchanged. |