Fetch Server File
sdnext_fileRetrieve a raw file from the SD.Next server, such as generated images, within allowed directories, by specifying its relative or absolute path.
Instructions
Fetch a file from the server (GET /sdapi/v1/file?file=...) as raw content. Must be inside an allowed dir (outputs, temp, models...).
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": {
"file": "<file>"
},
"name": "sdnext_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | File path relative to SD.Next data dir (or an absolute path inside allowed dirs, e.g. "outputs/Generations/..."). |