create_document
Create a new text document (markdown or plain text). For binary files (PDF, DOCX), use the web UI. If the user is working inside a VSCode workspace and a <workspace>/.bilg/bilg.config.json exists, prefer that file's projectName over the API key's default project.
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>"
},
"name": "create_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Folder path within the project, e.g. 'decisions' | |
| tags | No | ||
| title | No | ||
| content | Yes | Markdown or plain text content | |
| fileName | Yes | e.g. 'powersync-decision.md' | |
| projectName | No | Defaults to the API key's default project |