insert_doc_file_chip
Insert a Drive file smart chip at a specified position in a Google Doc, linking to a file URL with optional display text.
Instructions
Insert a Drive-file smart chip at an index in a Google Doc.
Side effect note: chip rendering happens client-side — the API stores a linked URL, and Google Docs upgrades it to a chip with filename/ icon/preview on the next render. For a person @mention use insert_doc_person_chip; for a plain hyperlink use insert_doc_link. 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. | |
| file_url | Yes | Full Drive URL, e.g. a share/edit URL like https://docs.google.com/document/d/<id>/edit, https://drive.google.com/file/d/<id>/view, or a Sheets/Slides URL. | |
| display_text | No | Optional visible anchor text. Defaults to the URL itself (still renders as a chip on next open). | |
| index | No | 1-based document index to insert at. Default 1. | |
| tab_id | No | Tab ID from list_doc_tabs to scope to a specific tab. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |