Skip to main content
Glama

convert

Convert code between formats and frameworks, including JavaScript to TypeScript and Class components to Hooks. Transform code structure while maintaining functionality.

Instructions

【代码转换器】转换代码格式/框架(JS→TS、Class→Hooks 等)

Input Schema

NameRequiredDescriptionDefault
codeNo源代码
fromNo源格式/框架
toNo目标格式/框架

Input Schema (JSON Schema)

{ "properties": { "code": { "description": "源代码", "type": "string" }, "from": { "description": "源格式/框架", "type": "string" }, "to": { "description": "目标格式/框架", "type": "string" } }, "required": [], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mybolide/mcp-probe-kit'

If you have feedback or need assistance with the MCP directory API, please join our Discord server