Authorizations
Project Bearer token (e.g., "Bearer sk-ac-xxxx")
Body
application/json
Tool rename request
Minimum length:
1from 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
}
}Rename one or more tool names within a project
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
}
}Project Bearer token (e.g., "Bearer sk-ac-xxxx")
Tool rename request
1Show child attributes