Create PDF upload
create_pdf_uploadGet a short-lived signed URL that adds a PDF file to a library paper that has no PDF yet (hasReadablePdf false), selected by paperId. Uploading is a separate step for the host: PUT the file to uploadUrl before expiresAt with Content-Type application/pdf and without Researchzy credentials. The file must be a PDF of at most maxSizeBytes. The PUT response has paperId, hasReadablePdf, readerUrl, sizeBytes and fileHashSha256; it fails with the same error codes as this tool. A paper's PDF is never replaced: a paper that has one, from the index or an earlier upload, is refused with OPERATION_NOT_ALLOWED. The paper's metadata stays as it is. Call only when the user asks to add a PDF to a paper. Requires a connected Researchzy account and library.write.
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": {
"paperId": "<paperId>"
},
"name": "create_pdf_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paperId | Yes | A paperId of a paper in the user's library without a PDF, from list_library_papers, get_paper or add_paper_to_library. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||