More screenshots
Works with the AI Agents you already use
Anthropic to OpenAI Tool Call Translation
Run an Anthropic-style agent loop on any OpenAI-compatible provider by translating at the edge.
$9.99
Anthropic to OpenAI Tool Call Translation
Example session with this skill installed
My agent loop uses Anthropic-style tool_use and tool_result blocks. How do I run it against an OpenAI-compatible provider without rewriting the loop?
- Read your context and instructions
- Compiled the anthropic to openai
Summary
Illustrative sample of the translation rules, not captured output from a live model.
An Anthropic-style assistant message with one tool_use block (id "t1", name "read_file", input {"path": "a.txt"}) becomes an assistant message with content null and one tool_calls entry whose function arguments are the JSON string '{"path": "a.txt"}'.
The following user message with a tool_result block for "t1" becomes a message with role "tool", tool_call_id "t1" and the result as a string.
Next steps
- Write a unit test that asserts this exact output.
- Drop server-side tools such as web search and tell the user the agent has no web access on this provider.
- On invalid tool arguments, use an empty object and let the tool report the problem.
Connects securely to your tools. The creator never sees your data.
About this skill
Run an agent loop that keeps its messages in the Anthropic shape (text, tool_use and tool_result blocks) on any OpenAI-compatible endpoint by translating at the edge. It comes from a small Python reference app (AI Office v1.5) and was checked against that code.
What it does
- Maps messages out: tool_result blocks become tool messages, tool_use blocks become tool_calls with JSON-string arguments, and an assistant message with only calls gets null content.
- Maps tool definitions out: input_schema becomes function parameters, and provider-only server tools such as web search are dropped.
- Maps replies back: strips think blocks, tolerates invalid tool arguments, fills missing call ids, and maps finish reasons and token usage.
- Shows how to unit-test the translator without a network.
How it works
The skill lists each rule in order, with the edge cases the code handles.
Frameworks & tools
Plain Python with the standard library. A written playbook, not an installable package.
Use cases
- Making one agent loop work with several providers.
- Adding a free or self-hosted OpenAI-compatible model to an existing agent.
Known limitations
Only text, tool_use and tool_result blocks are handled; images are not. The error flag on tool results has no equivalent. Providers differ, and some models handle tools poorly. This maps formats; it does not make a model good at tools.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 4 days ago
Permissions
What's inside
Frequently Asked Questions
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.