generate_javascript_function
generate_javascript_functionGenerate ES2022 JavaScript or TypeScript functions with JSDoc for browser or Node runtime to accelerate SAPUI5 and Fiori development.
Instructions
Generate an ES2022 JavaScript or TypeScript function with JSDoc for browser or Node runtime.
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": {
"description": "<description>",
"runtime": "<runtime>"
},
"name": "generate_javascript_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| description | Yes | ||
| runtime | Yes | ||
| typescript | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| runtime | Yes | ||
| typescript | Yes | ||
| functionName | Yes |