Skip to content

Commit f70a615

Browse files
committed
fix(pdf-server): hide viewUUID when interact disabled, widen annotations panel
- display_pdf result text no longer leaks viewUUID when the interact tool is not registered (model has no use for it). - Annotations panel default width: 250px -> 500px (max-width:50vw still caps on narrow viewports).
1 parent a23855c commit f70a615

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

examples/pdf-server/server.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1551,7 +1551,9 @@ Set \`elicit_form_inputs\` to true to prompt the user to fill form fields before
15511551
const contentParts: Array<{ type: "text"; text: string }> = [
15521552
{
15531553
type: "text",
1554-
text: `Displaying PDF: ${normalized} (viewUUID: ${uuid})`,
1554+
text: disableInteract
1555+
? `Displaying PDF: ${normalized}`
1556+
: `Displaying PDF: ${normalized} (viewUUID: ${uuid})`,
15551557
},
15561558
];
15571559

examples/pdf-server/src/mcp-app.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -861,8 +861,8 @@ body {
861861

862862
/* Annotation Side Panel */
863863
.annotation-panel {
864-
width: 250px;
865-
min-width: 120px;
864+
width: 500px;
865+
min-width: 180px;
866866
max-width: 50vw;
867867
background: var(--bg000);
868868
border-left: 1px solid var(--bg200);

0 commit comments

Comments
 (0)