read_crossproject
Read files from a configured companion workspace outside the current project, enabling multi-repo development without losing context.
Instructions
Read a file from a configured workspace root, usually a companion repo outside the current project workspace. Prefer the IDE built-in read/navigation tools for files in the current workspace. Returns up to 500 lines by default with line numbers and metadata (totalLines, range, truncated); use offset/limit to paginate.
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": {
"workspace": "<workspace>",
"path": "<path>"
},
"name": "read_crossproject"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path relative to workspace root (e.g., "Modules/MyModule/File.swift") | |
| limit | No | Optional: Read N lines. Returns plain text when used. | |
| offset | No | Optional: Start from line N (1-indexed). Returns plain text when used. | |
| workspace | Yes | Workspace name (none configured — create a workspace-config.json) |