import_file
Import files (txt, md, docx) into the repository to add context, automatically creating a context entry and updating the organisation.md index.
Instructions
import a file (txt, md, docx) into the repo as context. creates a context/ entry and updates the organisation.md index. the ai agent passes file content it has already read.
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": {
"fileName": "<fileName>",
"content": "<content>",
"fileType": "<fileType>"
},
"name": "import_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileName | Yes | file name (e.g., 'onboarding.md', 'runbook.txt', 'spec.docx') | |
| content | Yes | full text content of the file (plain text for txt/md, base64-encoded for docx) | |
| fileType | Yes | file type — determines how content is processed | |
| section | No | which organisation.md section to link from (auto-detected from filename if omitted) | |
| message | No | brief description of what's being imported |