Skip to main content
PUT
/
tool
/
name
Python
from acontext import AcontextClient

client = AcontextClient(api_key='sk_project_token')

# Rename tool names
result = client.tools.rename([
    {"old_name": "old_tool_name", "new_name": "new_tool_name"}
])
print(result.status)
{
  "code": 123,
  "error": "<string>",
  "msg": "<string>",
  "data": {
    "errmsg": "<string>",
    "status": 123
  }
}

Authorizations

Authorization
string
header
required

Project Bearer token (e.g., "Bearer sk-ac-xxxx")

Body

application/json

Tool rename request

rename
object[]
required
Minimum length: 1

Response

200 - application/json

OK

code
integer
error
string
msg
string
data
object