convert_by_path
Convert a session file by its direct file path, auto-detecting format from Claude, Codex, or OpenCode. Ideal when the file location is known.
Instructions
Convert a session file by its direct file path. Auto-detects the format (Claude JSONL, Codex rollout JSONL, or OpenCode .db). Useful when you know the exact file location.
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": {
"sourcePath": "<sourcePath>",
"to": "<to>"
},
"name": "convert_by_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target harness | |
| sourcePath | Yes | Absolute path to the source session file (.jsonl or .db) | |
| projectPath | No | For OpenCode target: project directory path |