Skills & web
gads_read_attachment
Read the text content of a file the operator attached to the current chat thread.
Read the text content of a file the operator attached to the current chat thread. Use for CSV, TXT, Markdown, or JSON attachments — image attachments are passed to you as vision input and don't need this tool. Returns up to 50KB of decoded text. Resolve messageId from the file part's parent UIMessage in the conversation.
Scope: read token (or higher). Read-only.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
messageId | string | Yes | The id of the UIMessage that holds the attachment. |
attachmentIndex | integer | No | Zero-based index into the message's file parts (in order of appearance). Defaults to the first file. (default: 0) |
projectId | string | No | Target account (project id). Required with an org-scoped token for account-scoped tools — call gads_list_ad_accounts to enumerate accounts. Omit with a project-scoped token. |