Refresh a living section
trigger_section_refreshRequests a server-side refresh to rewrite one document section using its pinned model and create a pending proposal in Suggested updates.
Instructions
Ask Rendra's server-side refresh worker to rewrite one using the model the section is pinned to (data-model attribute) and the workspace's saved model key (BYOK). It runs a model call and can take a few minutes. If your client times out, do not call it again: the run continues and its result appears in Suggested updates. Use this when you want Rendra's configured model to do the rewrite instead of crafting it yourself. Outcome is identical to propose_doc_update: a pending proposal in Library → Suggested updates (or nothing, when no change is needed). Optionally pass source_data with data you already gathered (the model takes every number from it), source_text to replace the section's instruction for this run, or model to override the pinned model for this single run. Requires docs:write 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": {
"slug": "<slug>",
"section_id": "<section_id>"
},
"name": "trigger_section_refresh"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Document slug. | |
| model | No | Optional. Whitelisted model id to override the section's pinned data-model for this run only (e.g. 'claude-sonnet-4-6', 'gpt-5'). Doesn't change the document. | |
| section_id | Yes | The id attribute of the target <section data-rendra-refresh id="…"> element. | |
| source_data | No | Optional. Data you already have (API response, report, max 200,000 chars). The model gets it as data, not instructions, and takes every number from it. | |
| source_text | No | Optional. Replaces the section's stored instruction (data-source) for this run only. | |
| source_label | No | Optional. Where source_data came from, for example "Billing API /v1/prices". | |
| source_title | No | Optional. Title or short label for the source, passed to the LLM for context. | |
| source_fetched_at | No | Optional. When source_data was fetched, ISO 8601 with offset. |