note_statistics_fs_tool
Get comprehensive statistics for any Obsidian note: word and character counts, links, tags, headings, code blocks, and file metadata. Analyze note complexity and structure.
Instructions
Get comprehensive statistics about a single note.
Analyzes the note for words, characters, lines, links (wikilinks and markdown), tags (frontmatter and inline), headings, code blocks, and file metadata.
Returns detailed metrics including:
Word count (excluding frontmatter and code blocks)
Character counts (with and without spaces)
Line count
Links: wikilinks, markdown links, total links
Tags: frontmatter and inline tags
Headings: count, by level, structure
Code: fenced code blocks and inline code
File metadata: size, timestamps
When to use:
Analyzing individual note complexity
Tracking note growth over time
Understanding note structure
Content auditing
Performance:
Any note size: < 1 second
Returns: Comprehensive statistics dictionary
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filepath | Yes | Path to note (relative to vault or absolute) | |
| vault_path | No | Path to vault root (optional, uses OBSIDIAN_VAULT_PATH env if not provided) | |
| ctx | No |