Execute
executeRun sandboxed Python to search, filter, and read your Zotero library items, full text, and passages. Returns only printed output, so results can be cited with page numbers.
Instructions
Run Python that reads the user's Zotero library. A global zotero offers search(), get_item(), fulltext(), find() and passages() (meaning-based search over the PDF text, with page numbers; see search_api for details); results are plain dicts and lists. Only what you print(), or a final bare expression, is returned, so filter and summarise in code instead of printing everything. Read-only; no network or file access.
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": {
"code": "<code>"
},
"name": "execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |