Find lines in library records
grepThe lines of records that match a pattern, each with its citation address. Give a path, or a database and words: grep then reads the records that search finds. Patterns are regular expressions without back-references.
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": {
"pattern": "<pattern>"
},
"name": "grep"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | With database: how many records, 1 to 20; 10 when not given. | |
| path | No | A library path, such as /, /papers/, /papers/9500320/ or /papers/9500320/content.lines. | |
| fixed | No | Match the pattern as plain text. | |
| words | No | With database: the search whose records grep reads. | |
| pattern | Yes | A regular expression, or plain text with fixed. | |
| database | No | The database, by the name ls / lists it under. | |
| ignore_case | No | Match upper and lower case alike. |