docs: cover tool content types, prompt image content, elicitation defaults, ping, legacy SSE serving (#2679)

This commit is contained in:
Felix Weinberger 2026-08-18 13:42:45 +01:00 • committed by GitHub
commit 68523682fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -201,5 +201,14 @@ const exported = await client.callTool(
console.log(exported.content);
//#endregion callTool_progress
// "Check the connection" — the empty result the page quotes.
//#region ping_basic
const pong = await client.ping({ timeout: 5000 });
console.log(pong);
//#endregion ping_basic
if (Object.keys(pong).length !== 0) {
throw new Error(`calling.md claim failed: ping resolved with ${JSON.stringify(pong)}`);
}
await client.close();
await server.close();