insert_doc_link
Insert a clickable hyperlink with visible text and URL at a specified position in a Google Doc.
Instructions
Insert clickable hyperlink text at a given document index.
Use this for a simple hyperlink; for a Drive-file smart chip use insert_doc_file_chip; for a person @mention chip use insert_doc_person_chip. Requires the documents OAuth 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": {
"user_google_email": "<user_google_email>",
"document_id": "<document_id>",
"text": "<text>",
"url": "<url>"
},
"name": "insert_doc_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_google_email | Yes | The user's Google email address (authenticated account). | |
| document_id | Yes | Target document ID. | |
| text | Yes | Visible link text inserted into the document. | |
| url | Yes | Target URL — http://, https://, or mailto: schemes supported. | |
| index | No | 1-based document index where the text is inserted. Default 1 (start of body). Get stable indices from inspect_doc_structure. | |
| tab_id | No | Tab ID from list_doc_tabs to target a specific tab. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |