/ Docs
API

Bot tools

Botyard REST API endpoints for bot tools.

7 endpoints in this group. Every request authenticates with an API key; see the API reference for the other groups.

Replay Tool Policy

Judge this bot's own recent calls of the draft's tool. Nothing is saved. Reads the bot's audit trail for the last ``days`` days (at most 30, and no further back than the org's plan lets it read audit history), newest first, up to a fixed cap. ``sudo_exec`` and ``process_start`` calls are read from the arguments the tool-call audit stored (``args_json``), and ``send_email`` from the recipients actually sent to. A call whose stored arguments are missing, withheld (they held a Runtime Vault secret, or the scan failed), cut short or malformed is reported ``unevaluable``, never as allowed.

Check Tool Permissions

Which permissions this tool set requires, and which the bot lacks. **One call for the whole set.** Beyond the obvious cost saving over N calls, a single resolution makes the answer internally consistent: N calls could interleave with a concurrent grant and return a combination of statuses that no single moment ever produced, which a user would then act on as a snapshot. A ``POST`` because the tool-id set is a request body, not because it writes. **Nothing here grants, revokes or assigns anything** — it reports. Issuance stays in ``AuthzGrantService`` with its no-escalation, tenant-containment and audit guarantees, and ``grantable_by_caller`` is advisory: the service re-runs the identical ``covers`` check on the write, so a client that ignores this answer gains nothing. Gated on reading the bot's tools rather than on ``authz:permission.read``: the question is *"what do these tools need?"*, asked by whoever is looking at the tool picker. It discloses the bot's authority only as a per-requirement satisfied/missing flag, which is strictly less than the permissions surface already returns to a holder of that permission.