veryfront__search_file_text
Requires project.files.read.
Access
No external-service connection is required. Use a Veryfront credential with access to the requested resources.
Call type: Read-only.
Arguments
| Field | Type | Required | Description and constraints |
|---|---|---|---|
ref | string | No | Content to read: main, branch:<name-or-id>, release:<version> or env:<name>. Omit for main. |
query | string | Yes | Literal text to find, or a regular expression when is_regex is true. |
pattern | string | No | File path pattern, for example .tsx or pages/. |
is_regex | boolean | No | Read query as a regular expression (default false). |
case_sensitive | boolean | No | Match letter case exactly (default false). |
limit | integer | No | Largest number of matching files, 1 to 100 (default 50). It limits files, not matching lines. Minimum: 1. Maximum: 100. |
project_reference | string | No | Project ID or slug (defaults to the current project) |
Example request
Send this JSON-RPC request through an initialized MCP client. Replace sample identifiers and values before calling the tool. See MCP client setup.
request.json
1{2 "jsonrpc": "2.0",3 "id": 1,4 "method": "tools/call",5 "params": {6 "name": "veryfront__search_file_text",7 "arguments": {8 "query": "example"9 }10 }11}Result
The published output shape is summarized below. Inspect both the MCP response content and isError when handling a call.
| Field | Type | Required | Description and constraints |
|---|---|---|---|
data | object[] | Yes | Primary result records returned by the tool. |
total_matches | number | Yes | Number of matching files returned. |
Full schemas
input-schema.json
1{2 "type": "object",3 "properties": {4 "ref": {5 "type": "string",6 "description": "Content to read: main, branch:<name-or-id>, release:<version> or env:<name>. Omit for main."7 },8 "query": {9 "type": "string",10 "description": "Literal text to find, or a regular expression when is_regex is true."11 },12 "pattern": {13 "type": "string",14 "description": "File path pattern, for example *.tsx or pages/*."15 },16 "is_regex": {17 "type": "boolean",18 "description": "Read query as a regular expression (default false)."19 },20 "case_sensitive": {21 "type": "boolean",22 "description": "Match letter case exactly (default false)."23 },24 "limit": {25 "type": "integer",26 "minimum": 1,27 "maximum": 100,28 "description": "Largest number of matching files, 1 to 100 (default 50). It limits files, not matching lines."29 },30 "project_reference": {31 "type": "string",32 "description": "Project ID or slug (defaults to the current project)"33 }34 },35 "required": [36 "query"37 ],38 "additionalProperties": false,39 "description": "Arguments for the search_file_text tool.",40 "$schema": "http://json-schema.org/draft-07/schema#"41}output-schema.json
1{2 "type": "object",3 "properties": {4 "data": {5 "type": "array",6 "items": {7 "type": "object",8 "properties": {9 "path": {10 "type": "string",11 "description": "Path of the matching file."12 },13 "version_id": {14 "type": [15 "string",16 "null"17 ],18 "description": "Current version ID, or null when the search does not supply one."19 },20 "matches": {21 "type": "array",22 "items": {23 "type": "object",24 "properties": {25 "line": {26 "type": "number",27 "description": "1-based line number of the matching line."28 },29 "content": {30 "type": "string",31 "description": "Text of the matching line, without surrounding lines."32 }33 },34 "required": [35 "line",36 "content"37 ],38 "additionalProperties": false39 },40 "description": "Matching lines in this file."41 }42 },43 "required": [44 "path",45 "version_id",46 "matches"47 ],48 "additionalProperties": false49 },50 "description": "Primary result records returned by the tool."51 },52 "total_matches": {53 "type": "number",54 "description": "Number of matching files returned."55 }56 },57 "required": [58 "data",59 "total_matches"60 ],61 "additionalProperties": false,62 "description": "Structured result returned by the search_file_text tool.",63 "$schema": "http://json-schema.org/draft-07/schema#"64}