Repository navigation
Conversation
4 tasks
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.
Why
Part of #744: the large-payload tools. Adding the JSON mirror next to their existing text would double the response, e.g., 43.8 → 88.3 KB for a build log and 26.5 → 53.1 KB for
fetch-actor-details. So the payload now goes out once, as the mirror.What changed
fetch-apify-docs,get-actor-run-log,get-actor-build-log:content[0]isJSON.stringify(structuredContent)and nothing else. Before, it was the raw page or log.fetch-actor-details: the JSON mirror, plus only the text thatstructuredContentdoesn't carry: the output-schema note, the server-interface header, the links nudge and the runnable guidance. The card, README and input schema are no longer repeated as prose. The server-interface text no longer repeats the operations JSON. The links nudge is sent only when the card, the only source of Console links, is returned.fetch-actor-details-widget: no mirror. ItsstructuredContent(28–51 KB) is for the UI, and the model keeps the 196-byte pointer.output.pricing: false, the card reported a paid Actor asFREE.actorInfo.pricingis now left out instead.typeObjectToStringand the README heading, which had no caller left.The text content of these 4 tools changes, and
actorInfo.pricingcan now be absent, so internal's contract tests may need updating.Notes for reviewers (human-written)
Proof it works
Through mcpc on real data, master vs this branch:
content[0]=structuredContentfetch-actor-details(apify/website-content-crawler)fetch-apify-docs(storage/dataset)get-actor-build-log,lines: 0fetch-actor-details,serverInterface: truefetch-actor-detailson a paid Actor,pricing: falsemodel: FREEpricingThe
fetch-actor-detailsintegration cases now read their sections from the mirror instead of prose headings.co-written with Claude Code.