





















@@ -240,7 +240,7 @@ function getActionEnum(properties: Record<string, unknown>) {
240240function expectStringSchema(
241241schema: unknown,
242242expected?: {
243-descriptionIncludes?: string;
243+description?: string;
244244},
245245) {
246246expect(schema).toBeTruthy();
@@ -249,8 +249,8 @@ function expectStringSchema(
249249}
250250const record = schema as Record<string, unknown>;
251251expect(record.type).toBe("string");
252-if (expected?.descriptionIncludes) {
253-expect(record.description).toEqual(expect.stringContaining(expected.descriptionIncludes));
252+if (expected?.description) {
253+expect(record.description).toBe(expected.description);
254254}
255255}
256256@@ -1065,7 +1065,10 @@ describe("message tool schema scoping", () => {
10651065const properties = getToolProperties(tool);
1066106610671067expect(getActionEnum(properties)).toContain("read");
1068-expectStringSchema(properties.messageId, { descriptionIncludes: "read" });
1068+expectStringSchema(properties.messageId, {
1069+description:
1070+"Target message id for read, reaction, edit, delete, pin, or unpin. If omitted for reaction-like actions, defaults to the current inbound message id when available.",
1071+});
10691072});
10701073});
10711074此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。