Read the built code
read_fileAccess Claude Design project files directly—no download required. Read large .dc.html files in slices using offset and limit for efficient retrieval.
Instructions
Read a file straight out of a Claude Design project, no download needed. A .dc.html page runs to hundreds of KB, so use offset/limit to read a slice, and search_code first to find the line you want.
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": {
"projectId": "<projectId>",
"path": "<path>"
},
"name": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | Keep Claude Design's injected preview runtime instead of stripping it | |
| path | Yes | Project-relative path, e.g. Prototype.dc.html | |
| limit | No | How many lines. Omit for the whole file, subject to maxChars. | |
| offset | No | First line to return, 0-based | |
| maxChars | No | ||
| projectId | Yes |