get_setting
Retrieve the current configuration for the virtual travel environment on Google Maps, enabling users to manage avatar journeys and photo reports effectively.
Instructions
Get current setting
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/McpService.ts:521-542 (handler)The handler function for the 'get_setting' tool. It fetches the system version and environment settings from the database, formats them into a textual summary, and returns it as a tool content response.const getSetting = () => { return Effect.gen(function* () { const version = yield* DbService.getVersion() const runnerEnv = yield *DbService.getSysEnv() const envText = 'A json of current environment settings\n' + Object.entries(runnerEnv.mode).map(([key, value]) => { return `${key}= ${JSON.stringify(value)}` }).join('\n') + '\nList of Image settings\n' + (runnerEnv.bodyAreaRatio ? `bodyAreaRatio=${runnerEnv.bodyAreaRatio}\n` : '') + (runnerEnv.bodyHWRatio ? `bodyHWRatio=${runnerEnv.bodyHWRatio}\n` : '') + (runnerEnv.bodyWindowRatioW ? `bodyWindowRatioW=${runnerEnv.bodyWindowRatioW}\n` : '') + (runnerEnv.bodyWindowRatioH ? `bodyWindowRatioH=${runnerEnv.bodyWindowRatioH}\n` : '') + (runnerEnv.noImageOut ? `noImage=true\n` : '') + (runnerEnv.isEnableFeedTag ? `feedTag=${runnerEnv.extfeedTag}\n` : '') + `version=${version}\n` return [{ type: "text", text: envText } as ToolContentResponse] }) }
- src/McpService.ts:146-154 (registration)Registration of the 'get_setting' tool in the SETTING_COMMANDS array, including name, title, description, and input schema (empty object). This is part of the tools list provided to the MCP server.{ name: "get_setting", // pythonがあったらよいとか、db設定がよいとか、tipsを取得する。tipsの取得を行うのはproject側スクリプトとか、script batchとか title: "Get the current setting", description: "Get current setting", inputSchema: { type: "object", properties: {} } },
- src/McpService.ts:1022-1023 (registration)Dispatch case in the toolSwitch function that routes calls to the 'get_setting' tool to the getSetting handler.case "get_setting": return getSetting()
- src/McpService.ts:1199-1199 (helper)Export of the getSetting function as part of the McpService class methods.getSetting,