kb_define_function
Defines a function at a given address and stores its name, parameters, description, return info, and optional end address in the persistent knowledge base, upserting by address and bank.
Instructions
Define a function at the given address.
Stores the function's name, parameter list (JSON), description, and return info. UPSERT on address+bank.
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": {
"address": "<address>",
"name": "<name>"
},
"name": "kb_define_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bank | No | ||
| name | Yes | ||
| params | No | ||
| address | Yes | ||
| returns | No | ||
| description | No | ||
| end_address | No |