---
title: "Replace a thread agent's tools"
method: PUT
path: "/threads/{id}/tools"
---

# Replace a thread agent's tools

`PUT /threads/{id}/tools`

## Request

- Base URL: `https://api.agentsky.dev/v1`
- URL: `https://api.agentsky.dev/v1/threads/{id}/tools`
- Auth: HTTP bearer

Replace the environment's list of turned-off tools. Only environment-scoped tool ids are accepted; tools the agent itself owns are read-only.

## Path parameters

- `id` string, required

## Request body

- object
  - `envId` string, required
  - `disabled` string[], required

## Response `200`

OK

- object
  - `disabled` string[]

## Other responses

- `400`: Error — { error: { code, message } }
- `401`: Error — { error: { code, message } }
- `403`: Error — { error: { code, message } }
- `422`: Error — { error: { code, message } }
- `default`: Error — { error: { code, message, request_id } }

## Changes

- **2026-11-02** `e5e8f0229a99`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/threads/:id/tools/put.md)

---

[API](https://skmtc.dev/agentsky/apis/agentsky-developer-api.md) - [All operations](https://skmtc.dev/agentsky/apis/agentsky-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentsky/apis/agentsky-developer-api/revisions/0d435187cd55?raw)
