poll and profile fixes

This commit is contained in:
Gustavo Madeira Santana
2026-03-09 00:29:10 -04:00
parent 6407cc9d2d
commit 3e6dd9a2ff
23 changed files with 1183 additions and 143 deletions

View File

@@ -245,6 +245,7 @@ describe("message tool schema scoping", () => {
expect(properties.pollOptionIndex).toBeDefined();
expect(properties.pollOptionId).toBeDefined();
expect(properties.avatarUrl).toBeDefined();
expect(properties.avatarPath).toBeDefined();
expect(properties.displayName).toBeDefined();
},
);

View File

@@ -445,6 +445,18 @@ function buildProfileSchema() {
"snake_case alias of avatarUrl for self-profile update actions. Matrix accepts mxc:// and http(s) URLs.",
}),
),
avatarPath: Type.Optional(
Type.String({
description:
"Local avatar file path for self-profile update actions. Matrix uploads this file and sets the resulting MXC URI.",
}),
),
avatar_path: Type.Optional(
Type.String({
description:
"snake_case alias of avatarPath for self-profile update actions. Matrix uploads this file and sets the resulting MXC URI.",
}),
),
};
}