get_version
Retrieve version information for the Things 3 task management application and its URL scheme integration to verify compatibility and available features.
Instructions
获取Things应用和URL Scheme的版本信息。
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.js:569-581 (handler)The main handler function for the 'get_version' tool. It constructs a Things URL for the 'version' command using buildThingsUrl, opens it with openThingsUrl, and returns a success text message.async handleGetVersion() { const url = buildThingsUrl('version', {}); await this.openThingsUrl(url); return { content: [ { type: 'text', text: '✅ 版本信息命令已发送。请查看Things应用获取版本信息。', }, ], }; }
- src/index.js:352-359 (registration)Registration of the 'get_version' tool in the ListToolsRequestSchema handler, including its name, description, and empty input schema (no parameters required).{ name: 'get_version', description: '获取Things应用和URL Scheme的版本信息。', inputSchema: { type: 'object', properties: {}, }, },
- src/index.js:443-444 (registration)Tool dispatch registration in the CallToolRequestSchema handler's switch statement, routing 'get_version' calls to the handleGetVersion method.case 'get_version': return await this.handleGetVersion();
- src/index.js:355-357 (schema)Input schema definition for 'get_version' tool: an empty object, indicating no input parameters are required.inputSchema: { type: 'object', properties: {},
- src/utils.js:84-93 (helper)Helper function used by the get_version handler to build the Things URL scheme: 'things:///version' with no parameters.export function buildThingsUrl(command, params = {}) { const baseUrl = `things:///${command}`; const queryString = buildQueryString(params); if (!queryString) { return baseUrl; } return `${baseUrl}?${queryString}`; }