Download a doc’s images
download_imagesDownload all embedded images from a Google Doc into a local folder and receive a mapping to update image references with local paths.
Instructions
Download every embedded image in a Google Doc to a local folder. Returns the objectId→filename mapping, which correlates with read_doc’s  markers so you can rewrite them to local paths (the inverse of publishing).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | Yes | absolute local folder to save images into (created if missing) | |
| tab | No | Target a specific tab by tabId or title (from list_tabs). Defaults to the first tab. | |
| account | No | Google account email to use. Defaults to GDOCS_DEFAULT_ACCOUNT, or the sole account. | |
| documentId | Yes |