summaryrefslogtreecommitdiffhomepage
path: root/src/context/tools/read-file.json
blob: 5d9de8cf1e94afc2be9a3905c825f592a1c15ab1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
	"id": "read_file",
	"label": "Read File Contents",
	"description": "Read the full text content of a file in the vault.",
	"friendlyName": "Read File",
	"requiresApproval": false,
	"definition": {
		"type": "function",
		"function": {
			"name": "read_file",
			"description": "Read the full text content of a file in the Obsidian vault. If the file has YAML frontmatter, it is also returned as a parsed JSON block at the top of the output. The file_path must be an exact vault-relative path (from the vault context or get_current_note).",
			"parameters": {
				"type": "object",
				"required": ["file_path"],
				"properties": {
					"file_path": {
						"type": "string",
						"description": "The vault-relative path to the file (e.g. 'folder/note.md')."
					}
				}
			}
		}
	}
}