Write an article from a script
text_articleTurn a script and its verified claims into a citation-bearing article (HTML, Markdown, excerpt, tags).
30 credits.
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": {
"script": "<script>",
"projectId": "<projectId>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "text_article"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Article title. Omit to have one derived from the script. | |
| claims | No | Optional verified-claim ledger. Supplying it lets the article preserve citations and corrected wording. | |
| script | Yes | Finished source script to turn into an article. This is the only required field. | |
| channel | No | Channel or publication voice to write in. | |
| projectId | Yes | The project to file this work under. Required — create one with the `projects_create` tool. A project this workspace does not own answers `not_found`; the work is never silently filed somewhere else. | |
| workspace | No | Workspace slug. Omit to use the workspace your credential is bound to. An API key names its own workspace, and a value that disagrees with it is refused rather than ignored. | |
| authorName | No | Author name for the returned byline and Schema.org metadata. | |
| publisherName | No | Publisher name for the returned Schema.org metadata. | |
| idempotencyKey | Yes | Required for anything that spends or creates durable state. Generate a unique id per logical call. Retrying with the SAME id and the SAME arguments returns the stored result instead of doing — and charging for — the work twice; the same id with different arguments is refused with `conflict`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||