vs_website_check
Check a URL's health: HTTP status, response time, server header, content snippet, and basic SSL state. No authentication needed.
Instructions
Quick health check for a URL: HTTP status, response time, server header, content snippet, and basic SSL state. No authentication required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Full URL to test, including protocol (https://...). |
Implementation Reference
- src/tools.ts:146-151 (handler)Handler function for the vs_website_check tool. Makes a GET request to the Visual Sentinel API endpoint /api/tools/website-check with the 'url' query parameter, without authentication.
handler: async (args, client) => client.request('GET', '/api/tools/website-check', { auth: false, query: { url: requireString(args, 'url') }, }), }, - src/tools.ts:137-144 (schema)Input schema for vs_website_check: requires a single 'url' string (full URL including protocol).
inputSchema: { type: 'object', properties: { url: { ...STR, description: 'Full URL to test, including protocol (https://...).' }, }, required: ['url'], additionalProperties: false, }, - src/tools.ts:133-151 (registration)Registration of the vs_website_check tool in the TOOLS array as a public (no auth) tool with name, description, inputSchema, and handler.
{ name: 'vs_website_check', description: 'Quick health check for a URL: HTTP status, response time, server header, content snippet, and basic SSL state. No authentication required.', inputSchema: { type: 'object', properties: { url: { ...STR, description: 'Full URL to test, including protocol (https://...).' }, }, required: ['url'], additionalProperties: false, }, requiresAuth: false, handler: async (args, client) => client.request('GET', '/api/tools/website-check', { auth: false, query: { url: requireString(args, 'url') }, }), }, - src/tools.ts:42-46 (helper)The requireString helper function used by the handler to extract and validate the required 'url' argument.
function requireString(args: Record<string, unknown>, key: string): string { const v = pickString(args, key); if (!v) throw new Error(`Argument "${key}" (string) is required.`); return v; }