Repository navigation
Add opt-in space to get_document_content - #11
Merged
Merged
Conversation
include_space returns the space the document is in as space: {id, name},
or null when it isn't in a space the user can access. It shares the
GET v3/documents/:id request with include_data_fields, so setting both
costs one extra request. If that request fails, space is null and
space_error says why; the text is still returned.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
dkanas
reviewed
Oct 16, 2026
dkanas
approved these changes
Oct 16, 2026
dkanas
reviewed
Oct 16, 2026
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
get_document_contentgets aninclude_spaceflag that returns the space the document is in asspace: {id, name}, ornullwhen the document isn't in any space the user can access. It reuses theGET v3/documents/:idrequest behindinclude_data_fields, so asking for both still costs one extra request. If that request fails, the text is still returned withspace: nulland aspace_error; an unexpected response shape also givesspace: null, without an error. The shared request's grace period is renamed toDOCUMENT_DETAILS_GRACE_MS, so its timeout message now says "document details request", and the tests cover the new flag on its own, combined with data fields, anullspace and failure cases.🤖 Generated with Claude Code