veryfront__search_knowledge
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 |
|---|---|---|---|
query | string | No | Text to match against knowledge file paths and frontmatter. Omit query to list knowledge files. Maximum length: 500. |
cursor | string | No | Opaque pagination token. Omit on the first request. To continue REST or MCP pagination, pass page_info.next from the previous response as cursor. Minimum length: 1. Maximum length: 13334. |
lookup_target | object or object or object | No | Optional. Omit to search the main preview branch (the default). Set this to target another preview branch, a deployed environment, or a published release; unresolved targets are returned as not found. |
limit | integer | No | Maximum number of results to return. Minimum: 1. Maximum: 12. |
shard_count | integer | No | Provide the shard count. Minimum: 1. Maximum: 8. |
shard_index | integer | No | Provide the shard index. Minimum: 0. |
project_reference | string | No | Project whose knowledge is selected. Ordinary callers require project.knowledge.read. A run-bound MCP service credential instead must match the persisted run's project and agent plus its actor or runtime transport binding; its effective sealed authority must grant the invoked tool and a knowledge selector. On project-scoped MCP endpoints, the scoped project supplies this value when omitted. |
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_knowledge",7 "arguments": {}8 }9}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 |
|---|---|---|---|
query | string | Yes | Resolved query used for scoring. |
mode | string | Yes | search when results scored positively; browse when no positive matches exist. Returns paths and metadata, falling back to a browse page when nothing matches. Values: "search", "browse". |
data | object[] | Yes | Knowledge Markdown paths with frontmatter previews. Read selected files (MCP get_file) before answering knowledge questions. |
page_info | object | Yes | Pagination cursor values for traversing the result set. |
returned | integer | Yes | Minimum: 0. |
total_matches | integer | Yes | Total number of matches found by the tool. Minimum: 0. |
shard | object | Yes | Shard metadata for this page. Optional sharding divides results between the selected shards. |
limit | integer | Yes | Page size used for this page. A cursor keeps the page size of the request that started the search. Minimum: 1. Maximum: 12. |
Full schemas
input-schema.json
1{2 "type": "object",3 "properties": {4 "query": {5 "type": "string",6 "maxLength": 500,7 "description": "Text to match against knowledge file paths and frontmatter. Omit query to list knowledge files."8 },9 "cursor": {10 "type": "string",11 "minLength": 1,12 "maxLength": 13334,13 "description": "Opaque pagination token. Omit on the first request. To continue REST or MCP pagination, pass page_info.next from the previous response as cursor."14 },15 "lookup_target": {16 "anyOf": [17 {18 "type": "object",19 "properties": {20 "kind": {21 "type": "string",22 "const": "preview_branch",23 "description": "Provide the kind."24 },25 "branch_id": {26 "anyOf": [27 {28 "type": "string",29 "format": "uuid",30 "description": "Branch identifier. Use null for the main branch when the tool supports it."31 },32 {33 "type": "null",34 "description": "Branch identifier. Use null for the main branch when the tool supports it."35 }36 ],37 "description": "Branch to search. Omit or use null for the main branch (the default)."38 }39 },40 "required": [41 "kind"42 ],43 "additionalProperties": false,44 "description": "Search a working branch, the default scope when lookup_target is omitted."45 },46 {47 "type": "object",48 "properties": {49 "kind": {50 "type": "string",51 "const": "environment",52 "description": "Provide the kind."53 },54 "environment_id": {55 "type": "string",56 "format": "uuid",57 "description": "ID of the environment whose deployed release to search."58 },59 "environment_name": {60 "type": "string",61 "minLength": 1,62 "maxLength": 255,63 "description": "Name of the environment (for example \"production\") whose deployed release to search."64 }65 },66 "required": [67 "kind"68 ],69 "additionalProperties": false,70 "description": "Search the release currently deployed to an environment. Provide environment_id or environment_name."71 },72 {73 "type": "object",74 "properties": {75 "kind": {76 "type": "string",77 "const": "release",78 "description": "Provide the kind."79 },80 "release_id": {81 "type": "string",82 "format": "uuid",83 "description": "ID of the release to search."84 },85 "release_version": {86 "type": "string",87 "minLength": 1,88 "maxLength": 255,89 "description": "Version string of the release to search."90 }91 },92 "required": [93 "kind"94 ],95 "additionalProperties": false,96 "description": "Search a specific published release. Provide release_id or release_version."97 }98 ],99 "description": "Optional. Omit to search the main preview branch (the default). Set this to target another preview branch, a deployed environment, or a published release; unresolved targets are returned as not found."100 },101 "limit": {102 "type": "integer",103 "minimum": 1,104 "maximum": 12,105 "description": "Maximum number of results to return."106 },107 "shard_count": {108 "type": "integer",109 "minimum": 1,110 "maximum": 8,111 "description": "Provide the shard count."112 },113 "shard_index": {114 "type": "integer",115 "minimum": 0,116 "description": "Provide the shard index."117 },118 "project_reference": {119 "type": "string",120 "description": "Project whose knowledge is selected. Ordinary callers require project.knowledge.read. A run-bound MCP service credential instead must match the persisted run's project and agent plus its actor or runtime transport binding; its effective sealed authority must grant the invoked tool and a knowledge selector. On project-scoped MCP endpoints, the scoped project supplies this value when omitted."121 }122 },123 "additionalProperties": false,124 "$schema": "http://json-schema.org/draft-07/schema#",125 "description": "Arguments for the search_knowledge tool."126}output-schema.json
1{2 "type": "object",3 "properties": {4 "query": {5 "type": "string",6 "description": "Resolved query used for scoring."7 },8 "mode": {9 "type": "string",10 "enum": [11 "search",12 "browse"13 ],14 "description": "search when results scored positively; browse when no positive matches exist. Returns paths and metadata, falling back to a browse page when nothing matches."15 },16 "data": {17 "type": "array",18 "items": {19 "type": "object",20 "properties": {21 "path": {22 "type": "string",23 "description": "Knowledge Markdown file path."24 },25 "matched_fields": {26 "type": "array",27 "items": {28 "type": "string"29 },30 "description": "Matched fields. May include path and frontmatter keys, including keys not present in the returned preview."31 },32 "frontmatter": {33 "type": "array",34 "items": {35 "type": "object",36 "properties": {37 "key": {38 "type": "string",39 "description": "Frontmatter key."40 },41 "value": {42 "type": "string",43 "description": "Frontmatter value. Returned preview values may be truncated."44 }45 },46 "required": [47 "key",48 "value"49 ],50 "additionalProperties": false51 },52 "description": "Preview of prioritized frontmatter: at most six fields, with values truncated to 160 characters."53 }54 },55 "required": [56 "path",57 "matched_fields",58 "frontmatter"59 ],60 "additionalProperties": false61 },62 "description": "Knowledge Markdown paths with frontmatter previews. Read selected files (MCP get_file) before answering knowledge questions."63 },64 "page_info": {65 "type": "object",66 "properties": {67 "self": {68 "type": [69 "string",70 "null"71 ],72 "description": "Cursor supplied on this request, if any."73 },74 "first": {75 "type": "object",76 "description": "Reserved; first-page cursor is not emitted."77 },78 "next": {79 "type": [80 "string",81 "null"82 ],83 "description": "Opaque cursor for the next REST or MCP page, if more results are available."84 },85 "prev": {86 "type": [87 "string",88 "null"89 ],90 "description": "Reserved; previous-page cursor is not emitted."91 }92 },93 "required": [94 "self",95 "first",96 "next",97 "prev"98 ],99 "additionalProperties": false,100 "description": "Pagination cursor values for traversing the result set."101 },102 "returned": {103 "type": "integer",104 "minimum": 0105 },106 "total_matches": {107 "type": "integer",108 "minimum": 0,109 "description": "Total number of matches found by the tool."110 },111 "shard": {112 "type": "object",113 "properties": {114 "shard_index": {115 "type": "integer",116 "minimum": 0117 },118 "shard_count": {119 "type": "integer",120 "minimum": 1121 },122 "total_items": {123 "type": "integer",124 "minimum": 0125 }126 },127 "required": [128 "shard_index",129 "shard_count",130 "total_items"131 ],132 "additionalProperties": false,133 "description": "Shard metadata for this page. Optional sharding divides results between the selected shards."134 },135 "limit": {136 "type": "integer",137 "minimum": 1,138 "maximum": 12,139 "description": "Page size used for this page. A cursor keeps the page size of the request that started the search."140 }141 },142 "required": [143 "query",144 "mode",145 "data",146 "page_info",147 "returned",148 "total_matches",149 "shard",150 "limit"151 ],152 "additionalProperties": false,153 "description": "Structured result returned by the search_knowledge tool.",154 "$schema": "http://json-schema.org/draft-07/schema#"155}