article_set_data
Set or update a custom data field on an article with any JSON value except null, including nested objects and arrays. Rejects internal_ keys; use article_delete_data to remove keys.
Instructions
Set a single article.data. value (PUT /articles/{id}/data/{key}). To delete a key use article_delete_data. Keys starting with 'internal_' are server-protected and rejected client-side.
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": {
"site": "<site>",
"article_id": "<article_id>",
"key": "<key>",
"value": "<value>"
},
"name": "article_set_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| site | Yes | ||
| value | Yes | New value for article.data.<key>. Any JSON value EXCEPT null — to remove a key, use article_delete_data instead. Nested objects and arrays are stored as-is and round-tripped on read. | |
| article_id | Yes |