Skip to content

Comments

Feature/refine get file contents v8#5

Merged
yonaka15 merged 6 commits intomainfrom
feature/refine-get-file-contents-v8
Jun 29, 2025
Merged

Feature/refine get file contents v8#5
yonaka15 merged 6 commits intomainfrom
feature/refine-get-file-contents-v8

Conversation

@yonaka15
Copy link
Owner

Closes:

yonaka15 added 6 commits June 29, 2025 07:59
- Add include_sha boolean parameter to control metadata vs raw content retrieval
- When include_sha=true, always use GitHub Contents API to ensure SHA is returned
- When include_sha=false (default), maintain existing behavior with raw content preference
- Unify GitHub API processing to handle both files and directories consistently
- Improve error handling and fallback logic for better reliability
- Update tool description and parameter documentation
- Update toolsnap test file to reflect new parameter

This enhancement allows users to reliably obtain file metadata (SHA, size, type)
regardless of file size, while maintaining backward compatibility with existing clients.
Add optional boolean parameter to retrieve file metadata instead of raw content.
When include_sha=true, returns SHA, size, and other metadata via GitHub Contents API.
Maintains backward compatibility and performance with Raw API as default.

- Add include_sha parameter with comprehensive test coverage
- Support metadata retrieval for both files and directories
- Update tool description and schema validation
@yonaka15 yonaka15 merged commit b0f00ba into main Jun 29, 2025
11 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant