search_project
Search editable documents in a ShareLaTeX project by case-insensitive query, returning file paths, line numbers, and snippets; filter paths with glob patterns and control result count/context.
Instructions
Search editable documents in one ShareLaTeX project.
Read-only. project is a project name or id. The match is
case-insensitive. Each hit is path, line number, and a short snippet.
file_pattern filters project paths using glob syntax. max_results is
1..200 (default 30); context_lines is 0..10. Uploaded files are skipped.
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": {
"project": "<project>",
"query": "<query>"
},
"name": "search_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| project | Yes | ||
| max_results | No | ||
| file_pattern | No | * | |
| context_lines | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |