2,339 official scripts
Tested scripts for the sites people automate most, ready for your agent to run.
Get Google Store product
Get one product of the Google Store US (store.google.com/us) by its slug or link, from its buy page: name, link, price and struck-through price in US dollars as the page shows them, whether it can be bought online, and its option panels (e.g. color, storage, model/carrier) with each option's label and whether it is available. Pass option labels to Add to Google Store cart. An unknown product fails with an error that says so.
Search Google Store products
Search the Google Store US (store.google.com/us) by keywords: every product card of the store's one result page, in its order, with the product name (pass its slug to Get Google Store product or Add to Google Store cart), link, price and struck-through price in US dollars (price_from tells when the price is the lowest of its options, e.g. "From $749"), the card's detail lines (storage, colours, models) and image, plus the number of products listed. A search with no match gives an empty list.
List Google Store cart items
List the items in the Google Store US (store.google.com/us) shopping cart of this browser: for each line its line id, SKU, product slug, name, quantity, line price and struck-through line price in US dollars, image and a review_hash (pass it to Remove from Google Store cart), plus the item count and subtotal. It is the browser's guest cart: no sign-in. An empty cart gives an empty list.
Add to Google Store cart
Add one unit of a Google Store US (store.google.com/us) product to the shopping cart from its buy page, choosing the options given (labels from Get Google Store product, e.g. "Fog", or "Obsidian", "256GB | 12GB RAM" and "Unlocked"), and return the cart afterwards: each line with its line id, SKU, name, quantity, line prices in US dollars and a review_hash, plus the item count and subtotal. A panel with a single option is chosen by itself; a panel left without a choice fails with an error that lists its options. Works as a guest: lines already in the cart stay. Nothing is paid or ordered.
Remove from Google Store cart
Remove one line from the Google Store US (store.google.com/us) shopping cart of this browser, whatever its quantity, with the line's own remove button, by its line id and the review_hash that List Google Store cart items gives for it, and return what is left. The review_hash makes sure the line is still the one that was reviewed (same SKU, quantity and price): when it changed, or the line is not in the cart, nothing is removed and the run fails with an error.
Search Google Shopping products
Search Google Shopping (the Shopping tab of Google Search) for products, in the country and language you choose, and get one results page: every product card in page order (product id, title, price and struck-through price as shown, price notes such as Pre-owned, seller, delivery and returns lines, rating, review count, badges such as a discount, image) and every refinement the page offers (stores, price bands, condition, category, features, sort order), each with the query and filter token that applies it. Pass a refinement's query and shoprs to search with it; refinements chain. Pass a card's product_id with the same query and shoprs to Get Google Shopping product for its offers from every store, price history and reviews. Google can show different products for the same search from one load to the next. On a managed browser, set country US (or the country you search): from a datacenter address Google shows unrelated products without saying so.
Shopify store admin login (Google SSO)
Log into a Shopify store admin via Google SSO — clicks 'Continue with Google' on accounts.shopify.com, picks the account, skips the passkey-enrollment prompt if shown, then opens admin.shopify.com/store/<store>. Pass the store handle.
Remove a place from a Google Maps list
Remove one Google Maps place from one of your saved lists, such as Favorites, Want to go or a list you made. Give the place by its place id (from search_places or get_place) or by a query that names one place, and the list by its name. When several Google accounts are signed in on the browser, choose one by its index from mail.google.com/list_accounts; the default is the browser's first account. Returns the place's name, the email of the account it was removed for, and whether it was removed now or was not in that list, so running it twice changes nothing. The place stays in the account's other lists. A query that Maps answers with a list of places fails and asks for search_places. A list name the account does not have fails and names the lists it has. This undoes save_place.
Search Gemini chats
Search your Gemini conversations (the "Search chats" box): server-side full-text over titles and message bodies.
Google Workspace unofficial API: list your invoices by date range
An unofficial Google Workspace API for billing invoices. List Google Workspace billing documents from the Admin Console for one date range (This month … All time) and one format (CSV or PDF). Returns account and invoices (label, format, createdDate, invoiceNumber) — metadata only. Feed a row's label, with the same dateRange and format, to admin.google.com/download_invoice to get the file.
Google Sheets: delete tab
Delete one tab of a Google Spreadsheet by gid. Returns deletedGid and remainingTabs (names left). The sheet's data goes with it (recover via Undo / Drive history); an unknown gid throws rather than risk deleting the wrong sheet; needs edit rights.
List Google Calendar events
List the signed-in Google Calendar account's events between two dates, across every calendar shown in the sidebar, or one calendar with calendarId (from list_calendars). Each occurrence of a repeating event is its own row, with recurring_event_id set to its series. Returns n and events (id, eid, title, all_day, start, end, timezone, location, description, calendar, organizer, attendees with response status, created, html_link). Times are UTC; all-day events use dates, with an exclusive end. One call covers up to one year. Pass eid to get_event, update_event, delete_event, add_conference_link or respond_invitation. Google Tasks and birthdays are not included.
Sheets: write cells
Write a 2D block of values into one tab of a Google Spreadsheet, top-left at startCell, like the Sheets API: null leaves a cell as it is, "" clears it, anything else replaces it as if typed (dropdown rules and formatting stay; clearing a dropdown cell removes its dropdown). Returns range, rows, cols, saved once every edit is saved. A value the sheet refuses (data validation, outside the grid) stops the run with the sheet's own message. Values are parsed per the spreadsheet locale ("1.5" in a FR sheet becomes 1 May; prefix ' to force text); leading = enters a formula; needs edit rights.
Sheets: read tab values
Read one tab of a Google Spreadsheet as a 2D array of display values. Returns values (row-major, '' for empty and non-top-left merged cells), nRows, nCols. Values are display strings after formatting (a date may read as "1.5").
Inspect a URL in Google Search Console
Run Google Search Console's URL Inspection for one page of a property and return what Google's index holds for it: whether the URL is on Google, its coverage state as Search Console names it (for example submitted_and_indexed, crawled_currently_not_indexed, url_unknown), when Google last crawled it, the sitemaps that list it, the pages that link to it, and the canonical the page declares. Lists are empty and the last crawl is null when Google has none. Takes the property as search.google.com/list_properties returns it, and the Google account to act as, by its number from mail.google.com/list_accounts. A URL outside the property, or an account that cannot open it, fails with a message that says so.
Create a Google Workspace user (Admin console)
Creates a new user in the Google Admin console (Workspace) under the domain of the given admin account: fills first/last name, primary email local-part, optional secondary (personal) email, submits with an auto-generated 16-char password, and optionally sends the native "set your password" login-instructions email to the secondary address. Returns the created email and generated password. The admin account must already be signed in to this browser, with a session recent enough that Google does not ask to confirm the password again — when it does, the script stops before touching anything and tells you to sign in once by hand.
Sheets: rename spreadsheet
Rename a Google Spreadsheet (its title, not a tab) and return the title shown after the save. Needs edit rights. Pass authuser when the browser is signed in to several Google accounts.
Google Drive: reject a signature request
Reject (decline to sign) a Google Docs / Drive eSignature request addressed to the signed-in account. Google then cancels the whole request for every signer. Takes the PDF link from list_signature_requests or the request email. Returns the account that rejected and the request's status afterwards. Refuses when the account is not a signer, has already signed or rejected, or the request is no longer open. When the browser is signed in to several Google accounts, pass the account to act as.
Add Google Meet link to a Calendar event
Add a Google Meet video-conferencing link to an existing Google Calendar event, by its eid. Safe to repeat: if the event already has a conference link, nothing changes and the existing link is returned. Returns the event's Meet link, verified by reopening the saved event.
Get Google Play app details
Fetch an Android app's store listing details: name, description, developer, category, rating, review count, price, and icon. No login required.
Search Google Hotels
Search hotels and other stays on Google Hotels for a place and a stay: a fixed check-in date or a number of days after today (for searches that run on a schedule), the nights, the adults, the children's ages and the price currency. Returns the place Google searched, its count of matching stays, and one page of about 20 stays in its order, each with its Google Hotels id, name, type and hotel class, coordinates, guest rating and review count, description, photos, Google's deal label, and its lowest price for the stay, per night and for the whole stay (null when Google shows no price). Per night, Google gives the price before taxes and fees to a browser in some countries (such as the US), and the price with them in others (such as the EU countries): the one it does not give is null. For the next page, pass nextPageToken as pageToken with the same search. Google ranks the stays again on each load, so a stay can come back on a later page: dedupe by entityId. A query that names one hotel returns that hotel alone, and a search that Google answers with no result returns an empty list. For a query it does not understand, Google searches a place of its own choosing: compare place with the query. Dates that Google does not take (in the past, or more than about 11 months ahead) and a currency it does not show fail with a message that names the problem. Pass an entityId to google.com/get_hotel_prices for the price at each booking site.
Gmail — Apply or remove a label on a thread
Apply a label to a Gmail thread by its hex threadId, optionally creating the label first, or take the label off again with remove:true. A thread already in the requested state is reported as a no-op without clicking. Takes a received thread — Gmail renders no conversation heading for a thread you sent to yourself, so those are refused rather than risk labelling the wrong thread.
Export a Google Sheets spreadsheet
Download a Google Sheets spreadsheet as a file in the format you choose. Returns the file name and where it was saved: a local path on your own Chrome, or a link on a cloud browser. xlsx, ods, pdf and zip hold the whole spreadsheet; csv and tsv hold one tab, chosen by its tab id.
Google Docs: add text at the end of a document
Add text at the end of a Google Doc you can edit, then read the document back to confirm it. Each line becomes a paragraph after the last one, added exactly as given (no automatic lists or curly quotes). Refuses when the account can only view or the document is in Suggesting mode. When the browser is signed in to several Google accounts, pass the account to act as.
Send a Gmail draft
Send an existing Gmail draft by its id from mail.google.com/list_drafts: a new message, or a reply saved inside a conversation. Delivers a real message that cannot be undone. Returns the recipients, subject and conversation id. Fails with nothing sent for an unknown id or a draft with no recipient. Sending a reply opens its conversation, which marks it as read. Pass account (an email) when several Google accounts share the browser.
