Repository navigation
fix(agent-toolkit): make get_asset_upload_url description client-neutral (5.80.3) - #577
Open
kubasulkowski wants to merge 3 commits into
Conversation
…ral (5.80.3) The description told the model to run curl to upload the file, which only works for clients that can execute shell commands. It now describes the upload step protocol-neutrally (HTTP PUT with the file's bytes, then read the ETag response header) so clients without shell access can still use the tool. The ETag handoff to finalize_asset_upload is unchanged. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…t_upload_url Reviewing the earlier neutral rewrite, the original curl example wasn't just about the protocol — --data-binary @<local_file_path> streams the file straight from disk instead of loading it into memory first, which matters for large files. Restore that instruction in protocol-neutral terms (stream from the local path, don't buffer the whole file) and keep the curl invocation only as an illustrative example, not a requirement. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…escription Platform already flagged curl once; a second mention risks failing their review again. Describe the no-buffering / stream-from-disk instruction without naming curl or any shell command, matching the bar set for the assets-core copy of this fix. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
rami-monday
approved these changes
Nov 30, 2026
This branch has not been deployed
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.
Summary
get_asset_upload_url's description told the model to runcurlto upload the file, which assumes the client can execute shell commands. ChatGPT and Gemini connectors flagged this.Content-Type, then read theETagresponse header. The handoff tofinalize_asset_upload(still needs theETag) is unchanged.Test plan
get-asset-upload-url-tool.test.tsto assert the description no longer containscurland still contains theETag/finalize_asset_uploadguidance.npx jeston the affected test files passes.npx eslint --fixandnpx prettier --writeon the changed files, no issues.