Integrations

Squoosh

Open an image, choose a format and settings, rotate it, compare the results, and save the one you want to your Downloads.

XataWorks Browser showing Squoosh’s start page, with its drop zone and four sample images, with the page-tools list open over it from the browser toolbar, headed Page tools (7), with a filter box, chips for each class, and the tools listed with their classes, beginning with Read the Squoosh state, List Squoosh’s formats and Describe Squoosh’s results, each Read only.
Squoosh, before an image is opened: every tool its adapter offers.

Where it works

Squoosh, at squoosh.app.

Open the site in XataWorks Browser and the tools below appear in the page-tools list in the browser’s toolbar, ready for the agent in any chat that has the tab. There is nothing to install or switch on.

How it works

Squoosh compresses images in the page, so there is nothing to sign in to and nothing to call. The tools describe each result — format, size, dimensions — and saving one clicks Squoosh’s own Download link, so the file arrives like any download you start yourself.

Tools

Each tool with the name XataWorks shows you, the name the agent uses, and the first sentence of the description the agent reads. You do not call them yourself: ask for what you want in your own words, and the agent picks the tool. Before one runs, XataWorks asks you, according to its class; Approvals and permissions explains the question and each answer.

Reads Read only

These only look things up.

  • Read the Squoosh state get_stateRead what Squoosh has open: whether an image is open, the source image (name, type, size in bytes, dimensions) and each side’s format, and whether it is still compressing.
  • List Squoosh’s formats list_encodersList the formats Squoosh can produce, each with its settings, their defaults and allowed ranges.
  • Describe Squoosh’s results get_resultDescribe what a side produced: format, file name, size in bytes, change against the source as a percentage (negative = smaller) and dimensions.

Adds and changes Mutating

These change something, and the adapter declares the change additive: a create, an append, a status set.

  • Save a Squoosh result to Downloads download_resultSave one side’s result as a file: clicks Squoosh’s own Download button, so the file goes to the user’s Downloads folder and the browser’s download shelf.

Changes that may not be undoable Consequential

These may make changes that cannot be undone, so XataWorks treats them with the most care.

  • Open an image in Squoosh open_imageOpen an image in Squoosh from an https: address (the site must allow other sites to read it; Wikimedia Commons does), a data: address, or a file in this chat as attachment:<file name> (pass name to keep its file name).
  • Set a Squoosh side’s format and settings set_sideSet one side of Squoosh’s comparison to a format, with encoder options, resize and colour reduction, in one step.
  • Rotate the image in Squoosh rotateRotate the open image a quarter turn clockwise.

See Page tools in the user guide for how to see what a tab offers, or every integration.