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
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_unreal_project_path"
}
}Input 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}`, }, ], } })