Format source code according to language-specific conventions. Supports TypeScript, JavaScript, JSON, Markdown, and Rust.
| 日期 | 适应度 | 安全分 | 调用数 |
|---|---|---|---|
| 3月17日 | 0.7870 | 0.84 | 1 |
{
"type": "object",
"required": [
"code",
"language"
],
"properties": {
"code": {
"type": "string",
"description": "Source code to format"
},
"language": {
"enum": [
"typescript",
"javascript",
"json",
"markdown",
"rust"
],
"type": "string",
"description": "Programming language"
}
}
} {
"type": "object",
"properties": {
"changed": {
"type": "boolean"
},
"language": {
"type": "string"
},
"formatted": {
"type": "string"
}
}
}