format_tool_code
Formats Python source code using Black and returns the formatted output. Does not save input, safe for read-only tokens.
Instructions
Format Python tool code with Black and return the formatted source. Stateless and safe for read-only service tokens — it does not save anything.
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": {
"code": "<code>"
},
"name": "format_tool_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The Python source to format. |