How to compress images with PiPic
get_integration_guideStep-by-step integration instructions for actually compressing images — either through the @pipic/cli command-line tool (best for whole directories) or over plain HTTP (no Node required). Includes the output contract, exit codes, error codes and which failures are worth retrying.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mode": "<mode>"
},
"name": "get_integration_guide"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | "cli" for the @pipic/cli tool, "http" for calling POST /compress/image directly. |