Read source files
websiteSourceCode_files_readReads up to 50 files by name from head, published, or an explicit version. A single-file read supports line and character ranges; continue truncated reads with nextStartCharacter and the resolved version.
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": {
"websiteId": "<websiteId>",
"names": "<names>"
},
"name": "websiteSourceCode_files_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| names | Yes | File names to read (up to 50). Singleton files are addressed by their type name, for example `global_css`. | |
| target | No | Version alias to read: `head` (default) or `published`. | |
| endLine | No | Last line to return (1-based, inclusive). Only valid when reading a single file. | |
| version | No | Explicit source version. Takes precedence over `target`. | |
| startLine | No | First line to return (1-based, inclusive). Only valid when reading a single file. | |
| websiteId | Yes | ||
| endCharacter | No | Last character to return from the selected line range (1-based, inclusive). Only valid when reading a single file. | |
| startCharacter | No | First character to return from the selected line range (1-based, inclusive). Only valid when reading a single file. |