set_run_color
Change the font color of a specific text run in a Word document paragraph using a hex color code (without #). Provide the paragraph ID, run index, and color value.
Instructions
Set the font color of a specific run in a paragraph.
Args: para_id: paraId of the target paragraph. run_idx: Zero-based index of the run. color: Hex color without # (e.g., "FF0000").
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": {
"para_id": "<para_id>",
"run_idx": "<run_idx>",
"color": "<color>"
},
"name": "set_run_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | Yes | ||
| para_id | Yes | ||
| run_idx | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |