Skip to content

Fix Vercel AI SDK template for Transform tool rename - #10

Open
mikedownesdev wants to merge 1 commit into
mainfrom
fix-transform-tool-rename
Open

Fix Vercel AI SDK template for Transform tool rename#10
mikedownesdev wants to merge 1 commit into
mainfrom
fix-transform-tool-rename

Conversation

@mikedownesdev

@mikedownesdev mikedownesdev commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

The Transform server renamed its tools (transform_filesstart_transform_job, check_transform_statuscheck_job_status, get_transform_resultsget_job_results). The transform/vercel-ai-sdk example'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/downloadText tools, 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_jobcheck_job_status (paced with wait) → get_job_resultsdownloadText and 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-sdk example to handle Transform MCP tool renames by rewriting the system prompt to describe the async workflow by intent and only name the local wait and downloadText tools. Restores end-to-end parsing against the live server (uses start_transform_jobcheck_job_statusget_job_resultsdownloadText).

Written for commit 0f2ccea. Summary will update on new commits.

Review in cubic

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>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Re-trigger cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant