Sam Morrow
db10882206
Add symbol extraction to get_file_contents tool
...
Adds an optional 'symbol' parameter to get_file_contents that uses
tree-sitter to extract a specific named symbol (function, class, type,
method, etc.) from a file. Instead of returning the entire file, only
the matching symbol's source code is returned.
Supports all languages from the structural diff engine: Go, Python,
JavaScript, TypeScript, Ruby, Rust, Java, C/C++. For unsupported
file types, returns an error suggesting the feature is not available.
If the symbol is not found, the error message includes a list of
available symbols in the file to help the model self-correct.
This pairs well with the structural diff tool — a model can see which
symbols changed via compare_file_contents, then fetch specific symbols
via get_file_contents to examine them in detail.
2026-02-09 23:53:40 +01:00
..
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 17:33:22 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-02-04 17:46:21 +00:00
2026-01-22 23:27:21 +01:00
2026-01-15 16:15:39 +01:00
2026-02-09 22:50:59 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2025-08-14 07:25:29 +02:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-02-09 23:53:40 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 17:33:22 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 17:33:22 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 17:33:22 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-22 23:27:21 +01:00
2026-01-22 23:27:21 +01:00
2026-01-22 23:27:21 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 17:33:22 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00