microsoft/hve-core
Publicmirrored fromhttps://github.com/microsoft/hve-coreAvailable
scripts/linting/schemas/agent-frontmatter.schema.json
73lines · modecode
| 1 | { |
| 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | "$id": "https://github.com/microsoft/hve-core/schemas/agent-frontmatter.schema.json", |
| 4 | "title": "Agent File Frontmatter Schema", |
| 5 | "description": "Frontmatter schema for .agent.md files in VS Code custom agents", |
| 6 | "type": "object", |
| 7 | "required": ["description"], |
| 8 | "properties": { |
| 9 | "description": { |
| 10 | "type": "string", |
| 11 | "minLength": 1, |
| 12 | "description": "A brief description of the custom agent, shown as placeholder text in the chat input field" |
| 13 | }, |
| 14 | "name": { |
| 15 | "type": "string", |
| 16 | "description": "The name of the custom agent. If not specified, the file name is used" |
| 17 | }, |
| 18 | "argument-hint": { |
| 19 | "type": "string", |
| 20 | "description": "Optional hint text shown in the chat input field to guide users on how to interact with the custom agent" |
| 21 | }, |
| 22 | "tools": { |
| 23 | "type": "array", |
| 24 | "items": { |
| 25 | "type": "string" |
| 26 | }, |
| 27 | "description": "A list of tool or tool set names that are available for this custom agent. Can include built-in tools, tool sets, MCP tools, or tools contributed by extensions" |
| 28 | }, |
| 29 | "model": { |
| 30 | "type": "string", |
| 31 | "description": "The AI model to use when running the prompt. If not specified, the currently selected model in model picker is used" |
| 32 | }, |
| 33 | "target": { |
| 34 | "type": "string", |
| 35 | "enum": ["vscode", "github-copilot"], |
| 36 | "description": "The target environment or context for the custom agent" |
| 37 | }, |
| 38 | "mcp-servers": { |
| 39 | "type": "array", |
| 40 | "items": { |
| 41 | "type": "object" |
| 42 | }, |
| 43 | "description": "Optional list of Model Context Protocol (MCP) server config json to use with custom agents in GitHub Copilot" |
| 44 | }, |
| 45 | "handoffs": { |
| 46 | "type": "array", |
| 47 | "items": { |
| 48 | "type": "object", |
| 49 | "required": ["label", "agent", "prompt"], |
| 50 | "properties": { |
| 51 | "label": { |
| 52 | "type": "string", |
| 53 | "description": "The display text shown on the handoff button" |
| 54 | }, |
| 55 | "agent": { |
| 56 | "type": "string", |
| 57 | "description": "The target agent identifier to switch to" |
| 58 | }, |
| 59 | "prompt": { |
| 60 | "type": "string", |
| 61 | "description": "The prompt text to send to the target agent" |
| 62 | }, |
| 63 | "send": { |
| 64 | "type": "boolean", |
| 65 | "description": "Optional boolean flag to auto-submit the prompt (default is false)" |
| 66 | } |
| 67 | } |
| 68 | }, |
| 69 | "description": "Optional list of suggested next actions or prompts to transition between custom agents. Handoff buttons appear as interactive suggestions after a chat response completes" |
| 70 | } |
| 71 | }, |
| 72 | "additionalProperties": false |
| 73 | } |
| 74 | |