get_ftp_settings
Retrieve global FTP service configuration details such as port number, maximum connection limits, and activation status for network file transfers.
Instructions
Get global FTP service settings including port, max connections, and enabled status
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/shares.ts:147-159 (registration)Registration of the 'get_ftp_settings' tool using server.tool(). Includes the tool name, description, empty input schema ({}), and the async handler function that calls client.rpc('FTP', 'getSettings', {}) to fetch FTP service settings.
server.tool( "get_ftp_settings", "Get global FTP service settings including port, max connections, and enabled status", {}, async () => { try { const result = await client.rpc("FTP", "getSettings", {}); return toolResult(JSON.stringify(result, null, 2)); } catch (error) { return toolResult(`Error fetching FTP settings: ${error}`, true); } }, ); - src/tools/shares.ts:5-7 (helper)Helper function 'toolResult' that formats the tool response with content array and optional error flag. Used by the get_ftp_settings handler to format its output.
function toolResult(text: string, isError = false) { return { content: [{ type: "text" as const, text }], isError }; }