get-code-example
Obtain a concise TypeScript snippet for a specific Brainerce SDK operation, such as payment confirmation or OAuth redirect. Focused and framework-neutral for exact call shapes.
Instructions
Get a short, focused TypeScript snippet for a specific Brainerce SDK operation. Framework-neutral — no Next.js file paths, no Tailwind, no framework-specific imports. Use this when you need the exact shape of a tricky SDK call (payment confirmation, reservation countdown, OAuth redirect, variant selection, etc.). For full SDK reference by topic, use get-sdk-docs instead.
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": {
"operation": "<operation>"
},
"name": "get-code-example"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | Yes | The SDK operation to get a snippet for. |