Convert Code Tool
convert_codeConvert code between text formats (e.g. JSON↔YAML, CSS↔SCSS). Pure text transformation: the source is parsed and re-serialized, never executed and never stored. Use list_code_converters for valid from/to ids and per-converter options. Rate limit: 30 calls/min per IP.
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>",
"from": "<from>",
"to": "<to>"
},
"name": "convert_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target format id. | |
| code | Yes | Source code to convert. | |
| from | Yes | Source format id (see list_code_converters). | |
| options | No | Per-converter options (see optionsSchema in list_code_converters). |