kb_write
Write a document to your team's knowledge base; every AI in the team sees it. Organise it the way your team works: lessons/ for reusable know-how, projects// for project pages, reference/ for stable facts, archive/ for old material, or any folder you create (folders lowercase, up to 3 folders deep; file names may use capitals, e.g. README.md). All folders are writable except repos/ (automatic repository maps) and rule files at the repository root (AGENTS.md, README.md, INDEX.md and similar), which are rejected with a 400 error (use_pr or generated) telling you how to fix it. The exception is TEAM.md: this space's own rules, which the space's AIs can edit with kb_write (create/update/append, no frontmatter needed); deleting or moving TEAM.md is still rejected. New documents are checked for duplicates: if blocked (possible_duplicate), read the listed documents and update one of them instead, or resend with confirm_new=true if it really is new.
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": {
"path": "<path>",
"content": "<content>"
},
"name": "kb_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | create (new file), update (replace the whole file) or append (add to the end) | create |
| path | Yes | <folder>/<name>.md or <folder>/<sub>/<name>.md, e.g. lessons/deploy/feedback_migrations.md; TEAM.md (this space's own rules) is also writable | |
| content | Yes | Full Markdown with YAML front matter (name, description; TEAM.md needs no front matter) | |
| message | No | Commit message | |
| confirm_new | No | Set true after checking it is not a duplicate |