not able to see preview, getting this issue can you please help me with that.
not able to see preview, getting this issue
can you please help me with that.
can you please help me with that.

server.tool callback?toMarkdown method (rest api). The request looks like it was successful: I get document metadata, Contents, and numbered pages in response, but the pages themselves contain no data. However, there is data on the pdf's pages (text and images). Do you have any explanations/solutions for this?server.tooltoMarkdownimport { createMcpHandler } from "agents/mcp";
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { z } from "zod";
const server = new McpServer({
name: "Hello MCP Server",
version: "1.0.0",
});
server.tool(
"hello",
"Returns a greeting message",
{ name: z.string().optional() },
async ({ name }) => {
return {
content: [
{
text: `Hello, ${name ?? "World"}!`,
type: "text",
},
],
};
},
);
export default {
fetch: async (request: Request, env: Env, ctx: ExecutionContext) => {
const handler = createMcpHandler(server);
return handler(request, env, ctx);
},
};# 2.pdf
## Metadata
- PDFFormatVersion=1.4
- IsLinearized=false
- IsAcroFormPresent=false
...
## Contents
### Page 1
### Page 2
### Page 3
...