hb_call_operation
Calls a Hub API v2 operation by ID, validates the request against the API spec, and returns only selected fields; GET requests run, writes are refused.
Instructions
[LIVE Hub] Call any Hub API v2 operation by id. Validates against the spec before sending; adds an Idempotency-Key to writes; follows pagination with all_pages (capped). The server is READ-ONLY: only GET operations run; writes are refused. Put path parameters in path_params, filters in query, JSON in body. Use fields (dotted paths such as ["candidate_ref","name"]) to keep answers small. Credits are units; money is integer pence with a currency. Never ask the user for an API key in chat.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON request body (object). For file uploads use {"filename","content_base64","content_type"} for file fields. | |
| query | No | Query parameters, e.g. {"per_page":50,"search":"jane"}. | |
| fields | No | Keep only these dotted paths of each record in `data`. | |
| confirm | No | Live writes only: true after the user approved the plan. | |
| headers | No | Only headers the operation declares (e.g. Idempotency-Key). Authorization is never settable. | |
| all_pages | No | List operations: fetch following pages and merge data. | |
| max_pages | No | With all_pages: pages to fetch (default 5, max 20). | |
| path_params | No | Values for {placeholders} in the path, e.g. {"candidate_ref":"<uuid>"}. | |
| operation_id | Yes | Operation id from hb_search_operations, e.g. hub.candidates.list. | |
| idempotency_key | No | Reuse the key from a plan or an earlier unknown-outcome write to repeat it safely. |