veryfront__upsert_file_chunks
Requires project.knowledge.write.
Access
No external-service connection is required. Use a Veryfront credential with access to the requested resources.
Call type: Can change resources.
Arguments
| Field | Type | Required | Description and constraints |
|---|---|---|---|
project_reference | string | No | Project identifier or slug that scopes the tool call. |
branch_name | string | Yes | Branch whose copy of the file is chunked. |
file_path | string | Yes | Project-relative path of the chunked file. |
chunks | object[] | Yes | Replacement batch of 1 to 500 chunks; each content string must be nonempty. |
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__upsert_file_chunks",7 "arguments": {8 "branch_name": "example",9 "file_path": "example",10 "chunks": [11 {12 "index": 0,13 "content": "example",14 "start_offset": 0,15 "end_offset": 0,16 "token_count": 117 }18 ]19 }20 }21}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 |
|---|---|---|---|
chunks | object[] | Yes | The stored chunks of the batch. |
created | number | Yes | Number of chunks created. |
updated | number | Yes | Number of existing chunks updated. |
Full schemas
input-schema.json
1{2 "type": "object",3 "properties": {4 "project_reference": {5 "type": "string",6 "description": "Project identifier or slug that scopes the tool call."7 },8 "branch_name": {9 "type": "string",10 "description": "Branch whose copy of the file is chunked."11 },12 "file_path": {13 "type": "string",14 "description": "Project-relative path of the chunked file."15 },16 "chunks": {17 "type": "array",18 "items": {19 "type": "object",20 "properties": {21 "index": {22 "type": "integer",23 "minimum": 0,24 "description": "Zero-based chunk index."25 },26 "content": {27 "type": "string",28 "minLength": 1,29 "description": "Text content of this chunk."30 },31 "start_offset": {32 "type": "integer",33 "minimum": 0,34 "description": "Nonnegative integer start offset in the file content."35 },36 "end_offset": {37 "type": "integer",38 "minimum": 0,39 "description": "Nonnegative integer end offset in the file content."40 },41 "token_count": {42 "type": "integer",43 "minimum": 1,44 "maximum": 32767,45 "description": "Positive integer token count for this chunk."46 },47 "metadata": {48 "type": "object",49 "additionalProperties": {50 "description": "Additional structured values supplied to the tool."51 },52 "description": "Optional structured metadata stored with this chunk."53 }54 },55 "required": [56 "index",57 "content",58 "start_offset",59 "end_offset",60 "token_count"61 ],62 "additionalProperties": false,63 "description": "One chunk of the replacement batch."64 },65 "minItems": 1,66 "maxItems": 500,67 "description": "Replacement batch of 1 to 500 chunks; each content string must be nonempty."68 }69 },70 "required": [71 "branch_name",72 "file_path",73 "chunks"74 ],75 "additionalProperties": false,76 "description": "Arguments for the upsert_file_chunks tool.",77 "$schema": "http://json-schema.org/draft-07/schema#"78}output-schema.json
1{2 "type": "object",3 "properties": {4 "chunks": {5 "type": "array",6 "items": {7 "type": "object",8 "properties": {9 "id": {10 "type": "string",11 "description": "Stored chunk identifier."12 },13 "index": {14 "type": "number",15 "description": "Zero-based chunk index."16 }17 },18 "required": [19 "id",20 "index"21 ],22 "additionalProperties": false,23 "description": "One stored chunk."24 },25 "description": "The stored chunks of the batch."26 },27 "created": {28 "type": "number",29 "description": "Number of chunks created."30 },31 "updated": {32 "type": "number",33 "description": "Number of existing chunks updated."34 }35 },36 "required": [37 "chunks",38 "created",39 "updated"40 ],41 "additionalProperties": false,42 "description": "Structured result returned by the upsert_file_chunks tool.",43 "$schema": "http://json-schema.org/draft-07/schema#"44}