# Chat2api Tool Client Replay

> Use when replaying sanitized client tool-calling fixtures against Chat2API with client-specific pass/fail rules.

- Skill: `xiaoy233/chat2api-tool-client-replay` (Agent Skill, multi-file: 5 files)
- Install (CLI): `npx skillmds@latest add xiaoy233/chat2api-tool-client-replay`
- Raw SKILL.md: https://api.skillmd.com/api/skills/xiaoy233/chat2api-tool-client-replay/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: xiaoy233 (https://skillmd.com/u/xiaoy233)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/xiaoy233/chat2api-tool-client-replay

---


# Chat2API Tool Client Replay

Use this skill to replay fixture scenarios for clients such as Cherry Studio, generic OpenAI tools, or unknown HAR-derived clients.

## Rules

- Preserve exact tool names.
- Validate stream and non-stream behavior separately.
- Use profiles for client-specific prompt-protocol expectations.

## Commands

```bash
CHAT2API_API_KEY=sk_xxx \
node skills/chat2api-tool-client-replay/scripts/replay-client-fixture.mjs \
  --fixture backup/har/cherry-studio-fixture.json \
  --profile cherry-studio \
  --model deepseek-v4-flash
```

Use `--dry-run` to check profile, model, and fixture selection without live requests. If the fixture file exists, dry-run parses the fixture schema and reports `fixtureExists` plus `scenarioCount`; if it is missing, dry-run still exits successfully with `fixtureExists: false`.

## Profiles

- `cherry-studio`: Cherry Studio headers and visible prompt-tool-use expectations.
- `openai-tools`: generic OpenAI-compatible tool-calling expectations.
- `custom-har`: empty client headers for replaying sanitized HAR-derived fixtures.

