add_code_pattern
Add reusable code patterns to a project library by submitting their name, description, example code, and language, making them available for reuse in future development.
Instructions
Add a reusable code pattern to the project library
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": {
"projectId": "<projectId>",
"pattern": "<pattern>"
},
"name": "add_code_pattern"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | ||
| projectId | Yes | Project ID |