Skip to content

Commit 19e364d

Browse files
committed
docs(pdf-server): Add prompt engineering to display_pdf description
1 parent 7c154e2 commit 19e364d

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

examples/pdf-server/server.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,13 @@ export function createServer(): McpServer {
7373
"display_pdf",
7474
{
7575
title: "Display PDF",
76-
description: "Display an interactive PDF viewer in the chat. The viewer supports zoom, navigation, text selection, and fullscreen mode. Use a URL from list_pdfs, or provide an arxiv.org URL for dynamic loading.",
76+
description: `Display an interactive PDF viewer in the chat.
77+
78+
Use this tool when the user asks to view, display, read, or open a PDF. Accepts:
79+
- URLs from list_pdfs (preloaded PDFs)
80+
- Any arxiv.org URL (loaded dynamically)
81+
82+
The viewer supports zoom, navigation, text selection, and fullscreen mode.`,
7783
inputSchema: {
7884
url: z.string().default(DEFAULT_PDF).describe("PDF URL (arxiv.org for dynamic loading)"),
7985
page: z.number().min(1).default(1).describe("Initial page"),

0 commit comments

Comments
 (0)