add_hyperlink
Appends an external hyperlink with display text and URL to the end of a specified paragraph in a Word document, creating necessary XML relationship entries.
Instructions
Append an external hyperlink at the end of a paragraph.
Creates a relationship entry in word/_rels/document.xml.rels and a w:hyperlink element with a Hyperlink-styled run in word/document.xml.
Args: para_id: w14:paraId of the target paragraph. text: Display text for the hyperlink. url: The URL the hyperlink points to.
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>",
"text": "<text>",
"url": "<url>"
},
"name": "add_hyperlink"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| text | Yes | ||
| para_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |