set_text
Replace text content on Figma nodes by specifying node ID and new text. Supports single or batch updates.
Instructions
Set text content on one or more nodes.
set_text({node: "1:2", text: "Hello World"}) set_text({nodes: [{node: "1:2", text: "Title"}, {node: "1:3", text: "Subtitle"}]})
Use this when changing what text says. For text styling (font, size, weight), use edit.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "set_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | No | Node ID | |
| text | No | New text content | |
| nodes | No | Batch: [{node, text}] |