Test a custom API tool
test_custom_api_toolTest a custom API tool
One real call to your site (two for a write when CSRF is switched on) with sample inputs, through the same path the AI's calls
take, without the AI. The answer is 200 whatever the site said: passed is the
outcome, and a passing test lets the tool be switched on. The site's response comes
back cut at 10,000 characters; the request sent is not echoed. By default Mojeeb waits up
to 15 seconds and refuses a response over 1 MB, as on the AI's calls. A test counts toward
your key's request budget, and your company can run 30 tests a minute across its keys
and the dashboard (429 test_rate_limited beyond that, with Retry-After).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | No | A sample value for each input, by name. | |
| tool_id | Yes | A custom API tool of the agent. Another agent's tool is `404 not_found`. | |
| agent_id | Yes | The agent the resource belongs to. Another company's agent, or the nil UUID, is `404 agent_not_found`; an agent outside the key's agent list is `403 agent_not_authorized`. |