Create a prompt source file in the project source or a preview branch so agents and clients can reuse its text; returns the prompt source document. Requires project.agents.write.
Arguments
project_referencestringProject ID or slug
idstring · min length 1 · max length 128requiredPrompt id, also the name of its source file.
descriptionstring | nullPrompt description. Omit it or send null for none.
contentstring · min length 1requiredPrompt text.
sourcestring · min length 1Complete prompt source file. It must export a structured prompt whose id matches id; when omitted the file is generated from description and content.
source_target_kindstringWhere to write the prompt file: project (the default) or preview_branch. Other values are rejected.
target_branch_idstring · uuid | nullPreview branch to use. Required for the preview_branch target; rejected for any other target.
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__create_prompt", "arguments": { "id": "a", "content": "string" } }}'{ "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "{\"id\":\"string\",\"name\":\"string\",\"description\":\"string\",\"content\":\"string\",\"source_path\":\"string\",\"source\":\"string\",\"edit_mode\":\"structured\",\"source_only_reasons\":[\"string\"]}" } ], "structuredContent": { "id": "string", "name": "string", "description": "string", "content": "string", "source_path": "string", "source": "string", "edit_mode": "structured", "source_only_reasons": [ "string" ] } }}The tool ran; its output is result.structuredContent.