Upsert file chunks

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

FieldTypeRequiredDescription and constraints
project_referencestringNoProject identifier or slug that scopes the tool call.
branch_namestringYesBranch whose copy of the file is chunked.
file_pathstringYesProject-relative path of the chunked file.
chunksobject[]YesReplacement 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
{  "jsonrpc": "2.0",  "id": 1,  "method": "tools/call",  "params": {    "name": "veryfront__upsert_file_chunks",    "arguments": {      "branch_name": "example",      "file_path": "example",      "chunks": [        {          "index": 0,          "content": "example",          "start_offset": 0,          "end_offset": 0,          "token_count": 1        }      ]    }  }}

Result

The published output shape is summarized below. Inspect both the MCP response content and isError when handling a call.

FieldTypeRequiredDescription and constraints
chunksobject[]YesThe stored chunks of the batch.
creatednumberYesNumber of chunks created.
updatednumberYesNumber of existing chunks updated.

Full schemas

input-schema.json
{  "type": "object",  "properties": {    "project_reference": {      "type": "string",      "description": "Project identifier or slug that scopes the tool call."    },    "branch_name": {      "type": "string",      "description": "Branch whose copy of the file is chunked."    },    "file_path": {      "type": "string",      "description": "Project-relative path of the chunked file."    },    "chunks": {      "type": "array",      "items": {        "type": "object",        "properties": {          "index": {            "type": "integer",            "minimum": 0,            "description": "Zero-based chunk index."          },          "content": {            "type": "string",            "minLength": 1,            "description": "Text content of this chunk."          },          "start_offset": {            "type": "integer",            "minimum": 0,            "description": "Nonnegative integer start offset in the file content."          },          "end_offset": {            "type": "integer",            "minimum": 0,            "description": "Nonnegative integer end offset in the file content."          },          "token_count": {            "type": "integer",            "minimum": 1,            "maximum": 32767,            "description": "Positive integer token count for this chunk."          },          "metadata": {            "type": "object",            "additionalProperties": {              "description": "Additional structured values supplied to the tool."            },            "description": "Optional structured metadata stored with this chunk."          }        },        "required": [          "index",          "content",          "start_offset",          "end_offset",          "token_count"        ],        "additionalProperties": false,        "description": "One chunk of the replacement batch."      },      "minItems": 1,      "maxItems": 500,      "description": "Replacement batch of 1 to 500 chunks; each content string must be nonempty."    }  },  "required": [    "branch_name",    "file_path",    "chunks"  ],  "additionalProperties": false,  "description": "Arguments for the upsert_file_chunks tool.",  "$schema": "http://json-schema.org/draft-07/schema#"}
output-schema.json
{  "type": "object",  "properties": {    "chunks": {      "type": "array",      "items": {        "type": "object",        "properties": {          "id": {            "type": "string",            "description": "Stored chunk identifier."          },          "index": {            "type": "number",            "description": "Zero-based chunk index."          }        },        "required": [          "id",          "index"        ],        "additionalProperties": false,        "description": "One stored chunk."      },      "description": "The stored chunks of the batch."    },    "created": {      "type": "number",      "description": "Number of chunks created."    },    "updated": {      "type": "number",      "description": "Number of existing chunks updated."    }  },  "required": [    "chunks",    "created",    "updated"  ],  "additionalProperties": false,  "description": "Structured result returned by the upsert_file_chunks tool.",  "$schema": "http://json-schema.org/draft-07/schema#"}