Search file text. Requires project.files.read.
Arguments
refstringContent to read: main, branch:<name-or-id>, release:<version> or env:<name>. Omit for main.
querystringrequiredLiteral text to find, or a regular expression when is_regex is true.
patternstringFile path pattern, for example *.tsx or pages/*.
is_regexbooleanRead query as a regular expression (default false).
case_sensitivebooleanMatch letter case exactly (default false).
limitinteger · min 1 · max 100Largest number of matching files, 1 to 100 (default 50). It limits files, not matching lines.
project_referencestringProject ID or slug (defaults to the current project)
Responses
curl -X POST -N "https://api.veryfront.com/mcp" \ -H "Authorization: Bearer $VERYFRONT_API_KEY" \ -H "Accept: application/json, text/event-stream" \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "veryfront__search_file_text", "arguments": { "query": "string" } }}'{ "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "{\"data\":[{\"path\":\"string\",\"version_id\":\"string\",\"matches\":[{\"line\":0,\"content\":\"string\"}]}],\"total_matches\":0}" } ], "structuredContent": { "data": [ { "path": "string", "version_id": "string", "matches": [ { "line": 0, "content": "string" } ] } ], "total_matches": 0 } }}The tool ran; its output is result.structuredContent.