rest_call
Call a REST endpoint through a configured service base URL, sending method, path, query, headers, and JSON or raw body. Use variables in requests and extract JSONPath values into session variables.
Instructions
Call a REST endpoint. path is relative to the service base_url (e.g. /hesaplar/123). body = JSON value, body_text = raw text (XML, form). path, query, headers and body may use {{variables}} (e.g. headers {"Authorization": "Bearer {{token}}"}). extract = {name: JSONPath} saves session variables. Returns status, body (parsed JSON or text), elapsed_ms.
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": {
"service": "<service>",
"method": "<method>",
"path": "<path>"
},
"name": "rest_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | ||
| path | Yes | ||
| query | No | ||
| method | Yes | ||
| extract | No | ||
| headers | No | ||
| service | Yes | ||
| body_text | No | ||
| environment | No | ||
| include_headers | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |