# Package google.apps.script.type.docs

## Index

- `https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.script.type/docs#google.apps.script.type.docs.DocsAddOnManifest` (message)
- `https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.script.type/docs#google.apps.script.type.docs.DocsExtensionPoint` (message)

## DocsAddOnManifest

Properties customizing the appearance and execution of a Google Docs add-on.

| Fields ||
|---|---|
| `homepageTrigger` | `https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.script.type#google.apps.script.type.HomepageExtensionPoint` If present, this overrides the configuration from `addOns.common.homepageTrigger`. |
| `onFileScopeGrantedTrigger` | `https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.script.type/docs#google.apps.script.type.docs.DocsExtensionPoint` Endpoint to execute when file scope authorization is granted for this document/user pair. |
| `linkPreviewTriggers[]` | `https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.script.type#google.apps.script.type.LinkPreviewExtensionPoint` A list of extension points for previewing links in a Google Docs document. For details, see [Preview links with smart chips](https://developers.google.com/workspace/add-ons/guides/preview-links-smart-chips). |
| `createActionTriggers[]` | `https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.script.type#google.apps.script.type.CreateActionExtensionPoint` A list of extension points for creating third-party resources from within Google Workspace applications. For more information, see [Create third-party resources from the @ menu](https://developers.google.com/workspace/add-ons/guides/create-insert-resource-smart-chip). |

## DocsExtensionPoint

Common format for declaring a Docs add-on's triggers.

| Fields ||
|---|---|
| `runFunction` | `string` Required. The endpoint to execute when this extension point is activated. |