Run Control Preprocessor
sdnext_preprocessApply control preprocessors (canny, depth, pose, lineart) to an image and get the processed map for ControlNet, guidance, or image conditioning.
Instructions
Run a control preprocessor (canny, depth, pose, lineart, ...) on an image and return the processed map (SD.Next /sdapi/v1/preprocess). Preprocessor names from sdnext_list_preprocessors.
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": {
"image": "<image>",
"model": "<model>"
},
"name": "sdnext_preprocess"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Base64-encoded image (raw base64, data: URL, or "upload:<id>" ref). | |
| model | Yes | Preprocessor name (e.g. "canny", "depth_midas", "pose_dwpose", "lineart_realistic"). | |
| params | No | Preprocessor settings (see sdnext_list_preprocessors params). |