veryfront__create_file
Requires project.files.write.
Access
No external-service connection is required. Use a Veryfront credential with access to the requested resources.
Call type: Can change resources.
Arguments
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.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "veryfront__create_file",
"arguments": {
"path": "example",
"content": "example"
}
}
}Result
The published output shape is summarized below. Inspect both the MCP response content and isError when handling a call.
Full schemas
{
"type": "object",
"properties": {
"project_reference": {
"type": "string",
"description": "Project ID or slug"
},
"ref": {
"type": "string",
"description": "Content selector: main or branch:<name-or-id>. Omit for main. Release and environment snapshots are read-only. Supplied aliases must name the same content."
},
"branch_id": {
"type": "string",
"description": "Legacy branch name or ID alias for ref=branch:<value>. Omit for main."
},
"path": {
"type": "string",
"description": "File path to create in main or the selected branch. Atomically fails if the path already exists, including concurrent creation; it does not overwrite."
},
"content": {
"type": "string",
"description": "File content"
}
},
"required": [
"path",
"content"
],
"additionalProperties": false,
"description": "Arguments for the create_file tool.",
"$schema": "http://json-schema.org/draft-07/schema#"
}{
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Created file ID when supplied by the file store."
},
"path": {
"type": "string",
"description": "Path of the created file."
},
"version_id": {
"type": "string",
"description": "Version ID the write produced."
},
"type": {
"type": "string",
"enum": [
"page",
"function",
"component",
"file"
],
"description": "File kind: page, function, component or file."
},
"size_bytes": {
"type": "number",
"description": "Size of the content encoded as UTF-8, in bytes."
},
"checksum": {
"type": [
"string",
"null"
],
"description": "SHA-256 content hash, or null when unavailable."
},
"updated_at": {
"type": "string",
"description": "Last content update time, RFC 3339."
}
},
"required": [
"path"
],
"additionalProperties": false,
"description": "Structured result returned by the create_file tool.",
"$schema": "http://json-schema.org/draft-07/schema#"
}