vybsly_directions
Get turn-by-turn driving directions between two locations. Specify start and end points to receive step-by-step route guidance.
Instructions
Get turn-by-turn driving directions between two places.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | ||
| to | Yes |
Implementation Reference
- index.js:160-171 (registration)Tool registration with name 'vybsly_directions', description, and inputSchema defining 'from' and 'to' string parameters.
{ name: 'vybsly_directions', description: 'Get turn-by-turn driving directions between two places.', inputSchema: { type: 'object', properties: { from: { type: 'string' }, to: { type: 'string' } }, required: ['from', 'to'] } } - index.js:163-170 (schema)Input schema for vybsly_directions: requires 'from' and 'to' as string properties.
inputSchema: { type: 'object', properties: { from: { type: 'string' }, to: { type: 'string' } }, required: ['from', 'to'] } - index.js:489-491 (handler)Handler for vybsly_directions tool: calls vybslyCall('/directions', { from: args.from, to: args.to }) and returns the result as JSON text.
case 'vybsly_directions': result = await vybslyCall('/directions', { from: args.from, to: args.to }); break; - index.js:21-32 (helper)Helper function vybslyCall() that makes HTTP GET requests to the Vybsly API with query parameters and API key header.
async function vybslyCall(path, params = {}) { const qs = new URLSearchParams(params).toString(); const url = `${VYBSLY_BASE}${path}${qs ? '?' + qs : ''}`; const headers = { 'Accept': 'application/json' }; if (API_KEY) headers['X-API-Key'] = API_KEY; const res = await fetch(url, { headers }); if (!res.ok) { const text = await res.text(); throw new Error(`Vybsly API ${res.status}: ${text.slice(0, 300)}`); } return res.json(); }