export_platform
Convert rule-level patterns into target editor configuration formats like Cursor's .cursorrules or Windsurf's .windsurfrules for direct file writing.
Instructions
Render rule-level patterns in a target editor's config format.
Use this when you want rules in a specific platform's rules file —
e.g. Cursor's .cursorrules, Windsurf's .windsurfrules, or Codex's
AGENTS.md — without hand-translating the output of export_rules().
For Anthropic-specific outputs (CLAUDE.md, SKILL.md), the dedicated
export_claude_md() and export_skill() tools include richer formatting.
Args:
fmt: Target platform. One of: "claude-md" (default),
"cursorrules", "windsurfrules", "codex". Unknown values
return an empty content string.
Returns:
Dict with keys: "content" (str — formatted text ready to write
to disk), "format" (str — echoed), "rule_count" (int).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fmt | No | claude-md |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||