Straighten a photo of a flat surface to scale
photo_rectifyStraighten a photo of a flat surface to scale. Re-projects a photo of a wall, floor, facade or drawing straight-on at one scale, from an A4/Letter sheet or card on the surface or from four corners of a known rectangle; returns the PNG and its mm per pixel. Same engine as the photo rectify page. Use when: An agent has an angled photo of a flat surface and needs a true-to-scale, straight-on picture. Not for: Things that stick out of the plane, curved surfaces. File types: jpg, jpeg, png, webp. Max 20 MB.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "photo_rectify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| options | No | Tool options, if any (see the tool description). | |
| file_url | No | Public https URL of the file (preferred). | |
| filename | No | File name with its extension, e.g. part.step. | |
| file_base64 | No | The file as base64, for small files without a URL (give filename too). |