PATCH /tools/{name}
Updated Oct 1, 20261 minute read
Switch a tool
The switch on one tool, by its manifest name. Off means the agent stops holding it on its next turn.
Part of Tool approvals.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
name | path | string | Yes |
Request body
application/json, required.
| Field | Type | Required | Description |
|---|---|---|---|
enabled | boolean | Yes |
Responses
| Status | Description |
|---|---|
200 | Done. |
401 | The bearer token is missing, revoked, or expired. |
404 | Not one of yours, or not there at all. |
429 | Too many requests. Wait the seconds in Retry-After. Limits depend on the plan. See rate limits. |
200 body
| Field | Type | Required | Description |
|---|---|---|---|
ok | boolean | No |
Example response
{
"ok": true
}Example request
curl -X PATCH https://api.median.sh/v1/tools/name \
-H "Authorization: Bearer $BEARER_AUTH"