Convert pictures with Rapier
convertUse this when the person wants pictures converted to JPEG XL, or JPEG XL pictures converted back. Free, on the person's own device. Opens Rapier's converter in this app's view where the app can show one: pictures from the chat passed in files open there and convert at once, and the person can add more and saves the results. The pictures never reach Rapier's server: the view reads them from the chat on the person's device. Without a view, answers with the converter's link (https://rapier.website/jxl) for the person. files: the chat's pictures. Omit it to let the person pick them. quality: high, veryhigh, lossless, or a number 1-100 (100 is lossless). A fresh view starts on high. A quality or effort left out keeps the view's current choice, so pass quality to be sure. effort 1-10 (7 on a fresh view). Higher is smaller and slower. 9 and 10 take a while, longer on a slower machine, and 10 can take 20 to 30 minutes for a 12 MP photo. Animation, video, resizing, and the max_bytes fitting search use at most effort 9, even when 10 is requested. max_bytes: each picture made the best that fits under 100000, 250000, 500000, 1000000, 2000000 bytes (a JPEG carried exactly when it fits). longer_side: 1920, 1280, 640 px, never larger than the picture. remove_location: true takes a photo's location out. The date, camera and other metadata are kept. To convert files in your own sandbox, run npx jpegxl <file|folder>: it prints each size before and after.
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": "convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | No | Your display name on acts. Never grants authority. | |
| files | No | ||
| effort | No | ||
| quality | No | ||
| max_bytes | No | ||
| longer_side | No | ||
| operation_id | No | ||
| remove_location | No |