brain_record_golden_pattern
Save verified code snippets as reusable golden patterns so AI agents copy proven boilerplate instead of reinventing it.
Instructions
Save a battle-tested code snippet that agents must copy/adopt instead of reinventing boilerplate.
Args: title: Short descriptive title context: Stack/domain keywords (e.g., 'php mysql pdo') code_snippet: The exact verified working code explanation: Explanation of why this pattern is preferred project: Project identifier or 'global'
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": {
"title": "<title>",
"context": "<context>",
"code_snippet": "<code_snippet>"
},
"name": "brain_record_golden_pattern"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| context | Yes | ||
| project | No | global | |
| explanation | No | ||
| code_snippet | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |