comment_strip
Strip comments from source code. Specify the programming language to clean your code for analysis or transformation.
Instructions
Strip comments from source code.
Parameters:
code — Source code with comments to remove.
language — Programming language (default: 'python').
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": "comment_strip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| language | No | python |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |