Skip to content

Content programs: draft, publish

The Content Verbs draft, publish as MCP do programs, with inputs, result, refusals and an example.

Reference for Content, one group of Content programs.

Content.draft

Draft writes Content of one kind from a brief, such as an article for a question the help center could not answer. Verb page.

Text
do: return await $.Content.draft(input)

Emits Content.drafted.

Inputs

InputTypeRequiredDescription
kindstringrequiredWhat to write.
brieftextrequiredThe question or brief it answers.

Returns

OutputTypeRequiredDescription
contentContentrequiredThe draft.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

JSON
{
  "name": "do",
  "arguments": {
    "code": "return await $.Content.draft({ kind: 'article', brief: 'Example brief' })"
  }
}

Content.publish

Publish puts a Content draft live on its Site and every Interface, once it passes the Evals for its kind. Verb page.

Text
do: return await $.Content.publish(input)

Emits Content.published.

Inputs

InputTypeRequiredDescription
contentContentrequiredThe draft to publish.

Returns

OutputTypeRequiredDescription
contentContentrequiredThe published Content.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

JSON
{
  "name": "do",
  "arguments": {
    "code": "return await $.Content.publish({ content: 'content_HYlnoorBdP' })"
  }
}