Repository navigation
Closed
Labels
Description
Part 2 of #5139.
Part 1 is TALE-337, branch feat/web-fetch-documents, on its way to feature-train. It lets web_fetch read a linked PDF, DOCX, XLSX, PPTX or ODT as text.
This part makes the fetched document itself usable, so a person who links to a document can have it changed or converted, as they can a file they attach.
What is asked
When web_fetch reads a document, it also keeps the bytes it fetched as a file of the conversation and returns that file's ref. Then:
run_codecan take the ref and copy the file to/agent/inputs/, as it does for "Refs of files from this conversation (uploads, or files created earlier)" (services/platform/lib/agent/work-tools.ts). The built-in document skills (configs/platform/custom/skills/pdf,docx,xlsx,pptx) can then change it.- If the file is indexed as an upload is,
rag_fetchreads it as well (services/platform/lib/chat/document-appendix.ts).
What the repository has (feature-train at 18705fe643c9c73665de7b3e9f016d5283a09d5b, plus part 1)
web_fetch(services/platform/backend/core/chat/assistant_tools.ts) returns text only, under a 4 MiB cap.- With part 1, a document's result carries
documentand anote. The note says the result is the text, not the file, and tells the model to ask the person to attach the file to have it changed. - The tool's description and the en/de/fr chat docs (
docs/*/platform/chat/basics.md,files-and-skills.md) say the same.
Open points for the design
- Storage. Where the file lives and how long: as an upload of the conversation, under the same storage, quota and retention as an attachment.
- Indexing. Whether it is indexed like an upload, so
rag_fetchreads it, or only kept forrun_code. - Access. The ref stays scoped to the conversation, like an upload's.
- Trust. The file came from the web, not from the person. Wherever its text reaches the model, it stays wrapped as untrusted, as
web_fetchwraps it now. - Repeats. The same URL fetched twice in one conversation: one file, or one per fetch.
Done means
- A linked document that
web_fetchread comes back with a ref thatrun_codeaccepts. A change made to it comes back as a new file, as one made to an attachment does. - Part 1's
noteasking for an attachment goes, and the tool description and the en/de/fr chat docs say that a linked document can be changed. - Tests cover the stored file, its scope and the ref.
Activity
feat(platform): keep a document web_fetch reads as a conversation file
feat(platform): keep a document web_fetch reads as a conversation file
feat(platform): keep a document web_fetch reads as a conversation file
tale-code-bot commentedon Nov 2, 2026
Landed on
release/0.6, the 0.6 feature line, with feature train #5329 as 8d5ca6b (feat(platform): keep a document web_fetch reads as a conversation file); it ships with Tale 0.6.0. GitHub closes issues only for commits onmain, so the feature-train role closes this one. Board task: TALE-359.feat(platform): keep a document web_fetch reads as a conversation file
feat(platform): keep a document web_fetch reads as a conversation file
feat(platform): keep a document web_fetch reads as a conversation file
feat(platform): keep a document web_fetch reads as a conversation file
feat(platform): keep a document web_fetch reads as a conversation file
feat(platform): keep a document web_fetch reads as a conversation file
feat(platform): keep a document web_fetch reads as a conversation file
feat(platform): keep a document web_fetch reads as a conversation file
feat(platform): keep a document web_fetch reads as a conversation file
feat(platform): keep a document web_fetch reads as a conversation file
feat(platform): keep a document web_fetch reads as a conversation file
feat(platform): keep a document web_fetch reads as a conversation file
feat(platform): keep a document web_fetch reads as a conversation file
feat(platform): keep a document web_fetch reads as a conversation file