ZeroZ-lab

Vistools — AI skill for Claude Code

AI community

Visual tools for AI agents — inspect, navigate, and crop images with structured JSON.

How to install Vistools

This entry records only its repository, not the path inside it, so there is no exact command to give. Open ZeroZ-lab/vistools and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Vistools does

Visual tools for AI agents — inspect, navigate, and crop images with structured JSON.

Alternatives in AI

  • AI Research SKILLs — Visual Skills Pack for Obsidian: generate Canvas, Excalidraw, and Mermaid diagrams from text with Claude Code 5.7k ★
  • Peekaboo — Peekaboo is a macOS CLI & optional MCP server that enables AI agents to capture screenshots of applications, o 3.2k ★
  • Matlab MCP Server — Run MATLAB® using AI applications with the official MATLAB MCP Server from MathWorks® 1.4k ★

README

vistools

**A coordinate-grounded visual inspection protocol for AI coding agents.**

[中文文档](README.zh-CN.md) | **English**

A programmable visual toolkit for AI agents. Inspect, navigate, crop, and sample large images — every command returns structured JSON, and generated views include coordinate mappings back to the source image.

$ vistools inspect screenshot.png
{
  "ok": true,
  "data": {
    "source": { "width": 3200, "height": 2400, "format": "png", "size_bytes": 808243 },
    "suggestion": {
      "needs_overview": true,
      "max_tile_rows": 2,
      "max_tile_cols": 3,
      "recommended_next": "overview",
      "reason": "long side 3200 exceeds 1568 visual threshold",
      "suggested_max_side": 1568
    }
  }
}

Before vs After

**Without vistools:**

Agent reads a 3200×2400 screenshot → details lost in compression
  → claims "the button looks correct" → no way to verify

**With vistools:**

1. inspect → 3200×2400, needs overview
2. overview --max-side 1200 → scaled preview, scale_factor = 0.375
3. Spot anomaly at overview (800, 600) → map to source: (2133, 1600)
4. viewport rect → exact crop of the region
5. sample --x 2133 --y 1600 → color is #e74c3c, not expected #2563eb
6. Report: "Button at source (2133, 1600) has incorrect background color"

Why

When an AI agent (Claude Code, Cursor, Codex, a browser agent) is handed a large screenshot or design file, it usually sees the whole thing at once — compressed, zoomed out, and too expensive to process at full resolution. `vistools` gives agents the same tools a human uses: look at the overview, pick a region of interest, zoom in, read the details.

Three design choices drive everything:

  • JSON-first. Every command outputs a CommandResult envelope — success or failure — so agents can parse the same shape every time.
  • Coordinate mapping. Every generated view includes a coordinate_mapping that describes how to translate output coordinates back to the source.