call_instance_proxy
Call a ComfyUI backend endpoint on a live instance to manage resources, such as freeing GPU memory with api/free.
Instructions
Call a ComfyUI backend endpoint on a live instance.
Backs ``POST /prod/v2/deployments/{deployment_id}/instances/{instance_id}/proxy/{path}``.
Get the instance_id from ``get_request_status`` once the status is
``in_progress``. Common target: ``api/free`` with
``{"unload_models": true}`` to free GPU memory.
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": {
"deployment_id": "<deployment_id>",
"instance_id": "<instance_id>",
"comfy_backend_path": "<comfy_backend_path>"
},
"name": "call_instance_proxy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance_id | Yes | ||
| request_body | No | ||
| deployment_id | Yes | ||
| comfy_backend_path | Yes |