woopcode docs
v1.0.0 GitHub

read_image

Shows you an image. Use it to look at a screenshot, a diagram, a rendered figure or a video frame rather than inferring their contents from pixel statistics.

The image arrives with the next message, so describe what you are looking for and then read what you actually see. To inspect a frame of a video, extract it to a file first (ffmpeg, or cv2 in the repl) and read that file.

Accepts PNG, JPEG, GIF and WebP. Read-only: it never changes the workspace and never asks for approval.

Parameters#

Parameter Type Required Description
path string Yes Path to the image file

Example#

read_image({ path: "…" })

Approval#

Runs without asking. Reads only; never changes the workspace.

See also#

  • Tools — every tool, and which of them can change your files
  • Approval modes — what gates the tools that change things

Added in woopcode@0.6.0