get_unreal_project_path
Retrieve the file path of an active Unreal Engine project for integration with development tools.
Instructions
Get the current Unreal Project path
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server/index.ts:129-142 (registration)Registration of the 'get_unreal_project_path' tool with inline handler. The handler checks if projectPath is set and returns it formatted as text content, or throws an error if not set.server.tool("get_unreal_project_path", "Get the current Unreal Project path", async () => { if (!projectPath) { throw new Error("Unreal Project path is not set") } return { content: [ { type: "text", text: `Unreal Project path: ${projectPath}`, }, ], } })
- server/index.ts:129-142 (handler)The async handler function that implements the tool logic: returns the Unreal project path if available.server.tool("get_unreal_project_path", "Get the current Unreal Project path", async () => { if (!projectPath) { throw new Error("Unreal Project path is not set") } return { content: [ { type: "text", text: `Unreal Project path: ${projectPath}`, }, ], } })