generate_code_snippet
Generate a code snippet for an API request in your chosen language or framework, specifying target and optional client for ready-to-use integration.
Instructions
Generate a code snippet for a request in various languages/frameworks
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": {
"requestId": "<requestId>",
"target": "<target>"
},
"name": "generate_code_snippet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| client | No | Optional: specify a client for the target language (e.g., "axios" for javascript, "curl" for shell) | |
| target | Yes | Target language for the snippet (e.g., "javascript", "python", "shell") | |
| requestId | Yes | ID of the request to generate snippet for |