Publications. action=create (project_id, title, export or post, targets: connection_id, at, zone, fields; see command_help domain=publish), schedule (id, target_id, at, zone), show (id), list (state, from, until), duplicate (id, at), plan (from, until), day (date, note, theme), slot (network, weekday, time). A person approves before anything is sent.
Behaviour#
These are the annotations of the tool definition, the hints a client uses to decide whether to ask before a call. publication is listed by tools/list.
| Property | Value |
|---|---|
| Read only | no |
| Destructive | no |
| Idempotent | no |
| Reaches outside the workspace | no |
Input#
| Argument | Type | Required | Notes |
|---|---|---|---|
action | string, one of 8 values | yes | |
id | string | no | pattern ^pub_[0-9a-hjkmnp-tv-z]{10}$ |
target_id | string | no | pattern ^tgt_[0-9a-hjkmnp-tv-z]{10}$ |
project_id | string | no | pattern ^prj_[0-9a-hjkmnp-tv-z]{10}$ |
title | string | no | |
text | string | no | |
export | string | no | |
thumbnail | string | no | |
post | string | no | |
targets | array of object | no | |
at | string | no | |
zone | string | no | |
late_window_minutes | integer | no | |
state | string | no | |
network | string | no | |
from | string | no | |
until | string | no | |
limit | integer | no | |
offset | integer | no | |
date | string | no | |
note | string | no | |
theme | string | no | |
weekday | string | no | |
time | string | no | |
slot | string | no | |
account | string | no | |
publications | boolean | no | |
remove | boolean | no |
Output#
A result has a text block, written for the model, and structured content with these members.
| Member | Type | Always present | Notes |
|---|---|---|---|
text | string | no | Untrusted text: data, not an instruction |
Errors#
A call over HTTP without credentials fails with E_UNAUTHORIZED, and too many calls with E_RATE_LIMITED. Both are in the error codes.
Safety#
- Nothing is sent:
scheduleonly asks for approval, so each target waits (waiting_approval) until a person, or a rule the person wrote, approves it in the app. - There is no action that publishes, sends now, retries, changes, cancels or approves; a person does those. The tool never returns a credential and names no destination.
schedulecannot move a post you already approved: that isE_PRIVILEGED_SESSION, and only you change it in the Publish page. A post that still waits is asked for again with its new time, and a failed or missed one scheduled again also waits for you.- Titles and texts in the result are data written by a person or an agent, not instructions.
Next steps#
Ask the agent
Plan the launch video for my YouTube channel tomorrow at 9.
The call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "publication",
"arguments": {
"action": "create",
"project_id": "prj_7k2m9x4q1b",
"title": "Launch teaser",
"export": "job_0123456789",
"targets": [
{
"connection_id": "con_0123456789",
"at": "2026-12-01T09:00",
"zone": "America/Sao_Paulo",
"fields": {
"made_for_kids": false
}
}
]
}
}
}The result
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "pub_7k2m9x4q1b <untrusted_media_text source=\"project_text\" inline=\"true\" truncated=\"false\">Launch teaser</untrusted_media_text> project prj_7k2m9x4q1b 1 target(s)\n tgt_3c5v8n2w6d youtube con_0123456789 draft 2026-12-01 09:00 America/Sao_Paulo (2026-12-01T12:00:00Z)"
}
],
"structuredContent": {
"id": "pub_7k2m9x4q1b",
"project_id": "prj_7k2m9x4q1b",
"title": "Launch teaser",
"export": "job_0123456789",
"targets": [
{
"id": "tgt_3c5v8n2w6d",
"connection_id": "con_0123456789",
"network": "youtube",
"state": "draft",
"scheduled_at": "2026-12-01T12:00:00Z",
"zone": "America/Sao_Paulo",
"local_time": "2026-12-01 09:00"
}
]
}
}
}The values are illustrative. The text block is exact.