Update Python tool
update_python_toolChange a Python tool's code, or what it does, in place: the variables a person gave it to read, its inputs and its group stay. Held to create_python_tool's own checks; its code holds no key.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"code": "<code>"
},
"name": "update_python_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Its whole new code. Reads `_args`, prints its result. | |
| name | Yes | The Python tool's name | |
| was_sha256 | No | The sha256 of the code this change was read from: a tool changed since is refused | |
| description | No | What it does, in new words | |
| confirm_token | No | Leave out at first: the answer previews what this would do and gives a token. Call again with the same arguments and that token to do it. |