read_file
Retrieve a file's contents from a QuantConnect project by specifying the project ID and file name. Omitting the file name returns all files in the project, enabling efficient code review or backup.
Instructions
Read a file from a project, or all files in the project if no file name is provided.
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": {
"model": "<model>"
},
"name": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | List of project file information. | |
| success | No | Indicate if the API request was successful. | |
| errors | No | List of errors with the API call. |