You MUST follow these steps in order:
1Validate Input — : Confirm at least one required parameter is provided. If not, output the error
message from Error Handling section
Determine file type (.prompt.md, .agent.md, .instructions.md, .collections.md)
Recognize if query is about MCP servers, inline chat, chat view, or general Copilot features
Note if you're in inline chat (Ctrl+I) or chat view context
For files: Read the file(s) using available file tools
For URLs: Fetch content using `#tool:fetch`
For queries: Apply URL Resolver strategy to find and fetch relevant content
4Analyze Content — : Extract the file's/documentation's purpose, key parameters, and primary use
cases
5Generate tldr — : Create summary using the template format below with correct invocation syntax
for file type
Ensure markdown formatting is correct with proper code blocks and placeholders
Use appropriate invocation prefix: `/` for prompts, `@` for agents, context-specific for
instructions/collections
Adapt verbosity: inline chat = concise, chat view = detailed