Fix Vercel AI SDK template for Transform tool rename - #10
Open
mikedownesdev wants to merge 1 commit into
Open
Conversation
The Transform server renamed its tools (transform_files -> start_transform_job, check_transform_status -> check_job_status, get_transform_results -> get_job_results). The example's system prompt hardcoded the old names. Rewrote the prompt to describe the workflow by intent and name only the app's own wait/downloadText tools, so the model uses whatever the server exposes — resilient to this and future renames. Verified end-to-end against the live server: the model drives start_transform_job -> check_job_status -> get_job_results -> downloadText and returns the parsed summary. Co-Authored-By: Claude Opus 4.8 <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.
The Transform server renamed its tools (
transform_files→start_transform_job,check_transform_status→check_job_status,get_transform_results→get_job_results). Thetransform/vercel-ai-sdkexample's system prompt hardcoded the old names.This rewrites the prompt to describe the workflow by intent and name only the app's own
wait/downloadTexttools, so the model uses whatever tools the server currently exposes — resilient to this rename and future ones.Verified end-to-end against the live server: the model drives
start_transform_job→check_job_status(paced withwait) →get_job_results→downloadTextand returns the parsed summary. Build passes.Companion fixes: vercel/examples#1541 (the gallery submission) and a docs PR.
Summary by cubic
Update the
transform/vercel-ai-sdkexample to handle Transform MCP tool renames by rewriting the system prompt to describe the async workflow by intent and only name the localwaitanddownloadTexttools. Restores end-to-end parsing against the live server (usesstart_transform_job→check_job_status→get_job_results→downloadText).Written for commit 0f2ccea. Summary will update on new commits.