ninja_get_device_dashboard_url
Retrieve the direct URL to open a specific device in the NinjaOne web dashboard using its device ID.
Instructions
Get the direct URL to open a device in the NinjaOne web dashboard.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Device ID |
Implementation Reference
- src/tools/devices.ts:320-320 (handler)The handler function that executes the tool logic. It calls the NinjaOne API endpoint /device/{id}/dashboard-url to get the dashboard URL for a device.
handler: async ({ id }, client: NinjaOneClient) => client.get(`/device/${id}/dashboard-url`), - src/tools/devices.ts:312-318 (schema)Input schema for the tool, requiring a numeric device ID.
inputSchema: { type: 'object', required: ['id'], properties: { id: { type: 'number', description: 'Device ID' }, }, }, - src/tools/devices.ts:308-321 (registration)The tool definition is part of the deviceTools array exported from src/tools/devices.ts, which is spread into ALL_TOOLS in src/tools/index.ts.
{ tool: { name: 'ninja_get_device_dashboard_url', description: 'Get the direct URL to open a device in the NinjaOne web dashboard.', inputSchema: { type: 'object', required: ['id'], properties: { id: { type: 'number', description: 'Device ID' }, }, }, }, handler: async ({ id }, client: NinjaOneClient) => client.get(`/device/${id}/dashboard-url`), },