Code Assistant
bee_codeExplain code, fix bugs, refactor code, or generate tests by sending code and an action; returns text and proposed code without reading files or changing repositories.
Instructions
Use for code explanation, bug fixing, refactoring, or test generation. Returns text and proposed code; it does not read files, execute commands, or modify a repository. Choose the intended operation with action.
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": {
"action": "<action>",
"code": "<code>"
},
"name": "bee_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The code | |
| error | No | Error message / bug description (for action=fix) | |
| focus | No | What to optimise for (for action=refactor) | |
| action | Yes | What to do with the code | |
| language | No | Programming language | python |
| framework | No | Test framework (for action=write_tests) |