docs: decision record for tool result payloads and excerpts
Adds docs/tool-result-payloads.md covering PRs #27-#29: why every tool result repeats its payload as JSON text (claude.ai ignores structuredContent; client detection and structured-only were rejected), why memory_list / memory_search return excerpts (named to avoid the snippet.* tools), and why excerpts weight rare query terms rather than using ts_headline (tested; it picked the same wrong passage). Links it from the README design notes, adds two troubleshooting entries, and marks the "same 9 fields as list/search" claims in the earlier decision record and in memory.get's comment as superseded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3da0c77849
commit
c4f5231be9
4 files changed
+174
-3
No files matched your search
@@ -66,7 +66,9 @@ large living documents P2 exists to serve. At the 64,000-char content ceiling a
|
||||
response would land near 140,000 characters, under half of it content.
|
||||
|
||||
**Shipped:** `memory_get` returns the same 9 fields as `memory_list` /
|
||||
`memory_search`. `userId` is still selected for the authorization check and
|
||||
`memory_search`. *(Superseded 2026-11-14: list/search now return an `excerpt`,
|
||||
`contentLength` and `truncated` in place of `content`; `memory_get` still
|
||||
returns these 9 fields. See [`tool-result-payloads.md`](tool-result-payloads.md).)* `userId` is still selected for the authorization check and
|
||||
stripped before responding.
|
||||
|
||||
**Rejected: an `include: ("embedding" | "tsv")[]` opt-in.** The original draft
|
||||
|
||||
Reference in new issue
Block a user