kb_write_text
Writes inline text or Markdown into a knowledge base, returning a document ID and status while embedding runs in the background for later search and retrieval.
Instructions
Write an inline text/markdown document into a KB (research summary, agent output, notes). Returns {document_id, status}. Ingestion embeds the content in the background; kb_get_status reports when it is 'ready', and kb_search returns only ready documents. metadata is a single-level key/value hash, filterable in kb_search. Text from a file fits here too (MD, CSV, TXT, or text a code sandbox extracted from a PDF or PPTX): the text only, without images or layout; the original file goes in with create_upload_link or kb_create_direct_upload.
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": {
"project_id": "<project_id>",
"collection_id": "<collection_id>",
"name": "<name>",
"content": "<content>"
},
"name": "kb_write_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| content | Yes | ||
| metadata | No | ||
| project_id | Yes | ||
| collection_id | Yes |