get_file
Retrieve content from any file in an Obsidian vault. Optionally return structured JSON with metadata for easier processing.
Instructions
Get the content of a specific file in the vault
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>"
},
"name": "get_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asJson | No | Return structured JSON with metadata instead of raw markdown | |
| filename | Yes | Path to the file relative to vault root |