diff options
Diffstat (limited to 'src/context/tools/read-file.json')
| -rw-r--r-- | src/context/tools/read-file.json | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/context/tools/read-file.json b/src/context/tools/read-file.json new file mode 100644 index 0000000..5d9de8c --- /dev/null +++ b/src/context/tools/read-file.json @@ -0,0 +1,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')." + } + } + } + } + } +} |
