Change the pattern, description or title of a structured project resource, where an omitted field keeps its value; returns the updated project resource source document. Requires project.files.write.
Arguments
project_referencestringProject ID or slug
resource_idstringrequiredResource ID from list_project_resources
patternstring · min length 1New URI pattern. Omit it to keep the current pattern.
descriptionstring · min length 1New description. Omit it to keep the current description.
titlestring | nullNew display title. Omit it to keep the title; null clears it.
source_target_kindstringThe source to write: project (the default) or preview_branch. One of
project,preview_branch.target_branch_idstring · uuid | nullThe preview branch to write. Required with preview_branch and not accepted with project.
Responses
curl -X POST -N "https://api.veryfront.com/mcp" \ -H "Authorization: Bearer $VERYFRONT_API_KEY" \ -H "Accept: application/json, text/event-stream" \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "veryfront__update_project_resource", "arguments": { "resource_id": "string" } }}'{ "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "{\"id\":\"string\",\"pattern\":\"string\",\"description\":\"string\",\"title\":\"string\",\"source_path\":\"string\",\"source\":\"string\",\"edit_mode\":\"structured\",\"source_only_reasons\":[\"string\"]}" } ], "structuredContent": { "id": "string", "pattern": "string", "description": "string", "title": "string", "source_path": "string", "source": "string", "edit_mode": "structured", "source_only_reasons": [ "string" ] } }}The tool ran; its output is result.structuredContent.