grep_paper_content
Run grep commands against a paper's full markdown text to locate sections, equations, or keywords with context.
Instructions
Grep patterns in the full converted markdown text of a paper. Pipes the paper's parsed markdown as stdin to the given grep command.
Returns the stdout of the grep command.
Args:
title: Paper title (supports fuzzy matching, but provide as accurately as possible).
grep_command: Full grep command to run. Paper markdown is piped as stdin. Examples:
- 'grep -A 150 "3 METHODOLOGY"' to read a whole section
- 'grep -i -C 3 "learning rate"' shows 3 lines of context around it
- 'grep -A 10 "Equation 1"' to locate equations or figures
Note: First call `get_paper_toc` to get the exact section names (e.g., "3 METHODOLOGY", "4.2 Baseline").
max_chars: Max output characters (default 6000).
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": {
"title": "<title>",
"grep_command": "<grep_command>"
},
"name": "grep_paper_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| max_chars | No | ||
| grep_command | Yes |