set_text_content
Update text in Paper Text nodes directly, without replacing HTML. Accepts batch updates for multiple nodes in one call.
Instructions
Set the text content of one or more Text nodes. Only works on nodes with component type "Text". Use this instead of writeHTML replace when you only need to change text. Supports batch updates in a single call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | No | Optional. The Paper file ID this call should act on. Pass it to reliably target a specific file when several are open at once (e.g. multiple agents from the same session working in parallel). Omit to use the most recently opened file in the session. | |
| updates | Yes | Array of text updates to apply. Each item specifies a node ID and its new text content. |