switch_profile
Switch the active identity profile for Feishu/Lark integration. Automatically updates credentials and syncs across processes.
Instructions
[Plugin v1.3.9] Switch the active identity profile. Atomically writes credentials.json::active; cached clients in this process are invalidated; cross-process MCPs (Codex / another Claude Code) auto-sync via dispatcher mtime check on next tool call (~10μs). To add a new profile, run npx feishu-user-plugin setup --profile <name> --app-id ... --app-secret ... --cookie ... then npx feishu-user-plugin oauth --profile <name> for UAT.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "switch_profile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Profile name. Use "default" for the primary profile; other names come from credentials.json or LARK_PROFILES_JSON. |