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.
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 |