Convert Source Code Language
generate-language-conversionUse this when the user supplies one source-code file and asks to convert it to another programming language or framework. After authorization, this state-changing action consumes AI credits, creates a generation, and returns converted code using source_code, filename, from_language, and to_language.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional generation history name for the converted output. Defaults to the supplied filename when omitted. | |
| filename | Yes | Filename for the supplied source code, including extension when known, so the generator can name the generation and understand context. | |
| source_code | Yes | Source code contents to convert. Use this only when the customer supplied the code text to the MCP client; use browser guidance for local file picker uploads. | |
| to_language | Yes | Target programming language or framework to convert to, such as TypeScript, Python, Go, Vue, TailwindCSS, CSS, or Laravel. | |
| from_language | Yes | Source programming language or framework to convert from, such as PHP, JavaScript, Python, React, Bootstrap, CSS, or Laravel. | |
| save_to_space | No | Optional destination Space item for saving the converted code after authorization. The authenticated user must be able to manage that Space. | |
| additional_instructions | No | Optional conversion guidance, such as preserving APIs, using a framework version, matching style conventions, or focusing on compatibility. |