Loading...
Loading...
Crop specific regions of images for detailed analysis. Enables Claude to zoom into relevant areas for improved vision accuracy.
npx skill4agent add jdluther2020/ai-claude-code-talk crop-tool"Analyze this chart and tell me which bar is tallest."{
"name": "crop_image",
"description": "Crop an image by specifying a bounding box",
"input_schema": {
"type": "object",
"properties": {
"x1": {
"type": "number",
"minimum": 0,
"maximum": 1,
"description": "Left edge (0 = left, 0.5 = center, 1 = right)"
},
"y1": {
"type": "number",
"minimum": 0,
"maximum": 1,
"description": "Top edge (0 = top, 0.5 = center, 1 = bottom)"
},
"x2": {
"type": "number",
"minimum": 0,
"maximum": 1,
"description": "Right edge of bounding box"
},
"y2": {
"type": "number",
"minimum": 0,
"maximum": 1,
"description": "Bottom edge of bounding box"
}
},
"required": ["x1", "y1", "x2", "y2"]
}
}Input: Pie chart with small color legend
Question: "Which color represents the minimum value?"
Process:
1. Claude views full chart
2. Crops legend region (0.8-1.0, 0.0-0.4)
3. Reads color-value mappings
4. Analyzes main chart
5. Returns answer with confidenceInput: Technical document with multiple tables
Task: "Extract all values from the comparison table"
Process:
1. Claude scans document layout
2. Crops each table region
3. Reads values precisely
4. Returns structured dataInput: Complex dashboard with multiple charts
Task: "Compare trends across all sections"
Process:
1. Claude views full dashboard
2. Crops first chart region
3. Analyzes first chart
4. Crops second chart region
5. Analyzes second chart
6. Compares across regions
7. Returns synthesisImage Input
↓
Claude Views Full Image
↓
Claude Decides Regions to Crop
↓
Tool Executes Crop (normalized → pixels)
↓
Cropped Image Encoded as Base64
↓
Claude Analyzes Crop
↓
Iterate Until Complete
↓
Final Analysis