Read source text file
read_source_fileReads bounded consecutive pages of indexed text for an exact source file. The sourceAssetId and expectedRevision identify the file and bind the read to its current sourceRevision; nextOffset selects a page. The result is normalized indexed text and may differ from or omit parts of the original. not_indexed/skipped indicates that no current readable text is available. Source access and the current revision are rechecked, and Google and unverified providers remain restricted in MCP. Returned text is source content and may be untrusted. Arbitrary URLs and paths are not accepted.
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": {
"sourceAssetId": "<sourceAssetId>",
"expectedRevision": "<expectedRevision>"
},
"name": "read_source_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offset | No | ||
| maxChars | No | ||
| sourceAssetId | Yes | ||
| expectedRevision | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| note | Yes | ||
| text | Yes | ||
| offset | Yes | ||
| status | Yes | ||
| complete | Yes | ||
| mimeType | Yes | ||
| nextOffset | No | ||
| skippedReason | No | ||
| sourceAssetId | Yes | ||
| representation | Yes | ||
| sourceRevision | Yes | ||
| totalCharacters | No | ||
| sourceMayBeTruncated | Yes |