import_public_brain
Import community-driven lessons for a framework to quickly fill an AI brain with proven knowledge, without overwriting existing lessons.
Instructions
Import community lessons from the Cachly Public Brain for a framework. Non-destructive: existing lessons with the same topic key are not overwritten. Returns the count of lessons imported and their topic slugs. Available frameworks: nextjs, fastapi, go, docker, kubernetes, react, typescript, python, rust, laravel, rails, spring. Use this to bootstrap a new brain with battle-tested community knowledge before your first session_start. Use publish_lesson to contribute your own lessons to the Public Brain; use learn_from_attempts for storing lessons from your own sessions.
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": {
"instance_id": "<instance_id>",
"framework": "<framework>"
},
"name": "import_public_brain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max lessons to import (default: 20) | |
| framework | Yes | Framework/platform to import lessons for | |
| instance_id | Yes | UUID of the cache instance to import into |