Search file text

Search file text. Requires project.files.read.

Arguments

  • refstring

    Content to read: main, branch:<name-or-id>, release:<version> or env:<name>. Omit for main.

  • querystringrequired

    Literal text to find, or a regular expression when is_regex is true.

  • patternstring

    File path pattern, for example *.tsx or pages/*.

  • is_regexboolean

    Read query as a regular expression (default false).

  • case_sensitiveboolean

    Match letter case exactly (default false).

  • limitinteger · min 1 · max 100

    Largest number of matching files, 1 to 100 (default 50). It limits files, not matching lines.

  • project_referencestring

    Project 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.