veryfront__list_project_file_drafts
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 |
|---|---|---|---|
project_reference | string | No | Project whose pending drafts are selected. Returns one latest update per canonically visible source file; restricted server-function drafts are omitted. Project ID or slug; defaults to the current project. |
branch_reference | string | No | Branch name or UUID. Omit for main; a missing selection is an error. Minimum length: 1. |
entity_type | string | No | Filter by the actual source-file type. Values: "page", "component", "function", "virtual_file". |
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__list_project_file_drafts",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 |
|---|---|---|---|
drafts | object[] | Yes | One latest update per canonically visible source file. Restricted server-function drafts are omitted. |
Full schemas
input-schema.json
1{2 "type": "object",3 "properties": {4 "project_reference": {5 "type": "string",6 "description": "Project whose pending drafts are selected. Returns one latest update per canonically visible source file; restricted server-function drafts are omitted. Project ID or slug; defaults to the current project."7 },8 "branch_reference": {9 "type": "string",10 "minLength": 1,11 "description": "Branch name or UUID. Omit for main; a missing selection is an error."12 },13 "entity_type": {14 "type": "string",15 "enum": [16 "page",17 "component",18 "function",19 "virtual_file"20 ],21 "description": "Filter by the actual source-file type."22 }23 },24 "additionalProperties": false,25 "description": "Arguments for the list_project_file_drafts tool.",26 "$schema": "http://json-schema.org/draft-07/schema#"27}output-schema.json
1{2 "type": "object",3 "properties": {4 "drafts": {5 "type": "array",6 "items": {7 "type": "object",8 "properties": {9 "file_id": {10 "type": "string",11 "format": "uuid",12 "description": "Deterministic source-file identity within the project."13 },14 "entity_type": {15 "type": "string",16 "enum": [17 "page",18 "component",19 "function",20 "virtual_file"21 ],22 "description": "Canonical source-file type."23 },24 "version": {25 "type": "integer",26 "minimum": 1,27 "description": "Current pending draft sequence; commit/discard resets the pending sequence to 0."28 },29 "updated_at": {30 "type": "string",31 "description": "Timestamp of the current full-body draft snapshot."32 },33 "body_snapshot": {34 "type": [35 "string",36 "null"37 ],38 "description": "Latest pending full-body snapshot; null for updates without a full body, including deletions."39 }40 },41 "required": [42 "file_id",43 "entity_type",44 "version",45 "updated_at",46 "body_snapshot"47 ],48 "additionalProperties": false49 },50 "description": "One latest update per canonically visible source file. Restricted server-function drafts are omitted."51 }52 },53 "required": [54 "drafts"55 ],56 "additionalProperties": false,57 "description": "Structured result returned by the list_project_file_drafts tool.",58 "$schema": "http://json-schema.org/draft-07/schema#"59}