search_documents
Search across documents using semantic search. Returns relevant chunks with citations — answer the user's question from them yourself. If projectName is omitted, uses the API key's default project; if no default, searches all accessible projects. 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": {
"query": "<query>"
},
"name": "search_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Tag intersection — all must match | |
| topK | No | ||
| query | Yes | The search query | |
| pathPrefix | No | Folder path prefix (e.g. 'teknik/architecture') | |
| projectName | No | Project name to filter results |