call_api_raw
Make direct Hostkey InvAPI calls by resource and action for operations lacking typed tools, such as ISO, S3, or Remote Hands. Requires confirm=true and may need destructive-action approval.
Instructions
Universal direct InvAPI call by resource and action, for resources without typed tools (e.g.: iso — ISO image library, s3 — S3 Object Storage, rhr — Remote Hands new version; see action list in the docs: https://hostkey.com/documentation/apidocs/). ALWAYS requires confirm=true; destructive/paid actions additionally require HOSTKEY_ALLOW_DESTRUCTIVE=1. Prefer typed tools when they exist for the needed operation.
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": {
"resource": "<resource>",
"action": "<action>",
"confirm": "<confirm>"
},
"name": "call_api_raw"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| auth | No | Inject session token (defaults to true) | |
| action | Yes | Resource action, e.g.: list | |
| params | No | Call parameters as an object; nested objects become params[...] | |
| confirm | Yes | Required confirmation. Without confirm=true the call is rejected. | |
| resource | Yes | InvAPI resource without .php, e.g.: iso, s3, rhr, eq, net, whmcs |