Search the Hetzner API reference
hetzner_searchRun JavaScript against the Hetzner API reference to locate operations, paths, parameters, and request bodies before querying or executing API calls—no token or API requests needed.
Instructions
Explore the Hetzner API reference (Cloud API incl. DNS zones, Storage Box API, and the Robot API for dedicated servers) by running JavaScript against it. Makes no API calls and needs no token. Use it before hetzner_query / hetzner_execute to find the right path, parameters and request body.
Globals available in the code:
search(text) -> [{ operationId, method, path, summary, api }] where every word matches id, path, summary or tag.
api is "cloud" | "hetzner" (both called via hetzner) or "robot" (called via robot)
describe(ref) -> one operation, condensed: description, parameters, requestBody, response ("name*" = required).
ref is an operationId or "METHOD /path". Robot operations have no JSON schema; their
description lists Input, Output, Errors and the request limit, plus curl/JSON examples
operations -> all operations with full JSON schemas: { api, operationId, method, path, summary, description,
tags, deprecated, parameters, requestBody, response }
apis -> { cloud, hetzner, robot }, each { baseUrl, overview, tags: [{ name, description }] }. overview is the
general documentation in Markdown (pagination, label selectors, sorting, rate limits, errors)
Examples: async () => search('firewall') async () => describe('create_server') async () => describe('POST /servers/{id}/actions/rebuild') async () => search('robot firewall') async () => describe('robot_post_firewall_server_id') async () => operations.filter(o => o.tags.includes('Zone RRSets')).map(o => o.method + ' ' + o.path) async () => apis.cloud.overview.split('\n## ').find(s => s.startsWith('Label Selector'))
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": {
"code": "<code>"
},
"name": "hetzner_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | JavaScript: an async arrow function whose return value is the result. |