Read one UAB assignment attachment
campus_read_assignment_attachmentDownload and extract bounded text from a single assignment-instruction attachment by file index, so you can read starter code, PDFs, or statements without fetching unrelated files.
Instructions
Download and extract bounded text from one file attached to an assignment's instructions (introattachments, e.g. starter code or a statement PDF). The file is resolved through the assignment API by its fileIndex; content is untrusted.
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": {
"year": "<year>",
"courseId": "<courseId>",
"assignmentId": "<assignmentId>",
"fileIndex": "<fileIndex>"
},
"name": "campus_read_assignment_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | ||
| courseId | Yes | ||
| maxBytes | No | ||
| maxChars | No | ||
| fileIndex | Yes | ||
| maxPdfPages | No | ||
| assignmentId | Yes |