generate_template
Generate a code template for any LeetCode problem by providing the problem slug and programming language.
Instructions
Generates a language-specific code template for a given LeetCode problem slug.
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": {
"problem_slug": "<problem_slug>",
"code_lang": "<code_lang>"
},
"name": "generate_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code_lang | Yes | ||
| problem_slug | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |