![]() |
ezEngine Release 26.9
|
Writing to and reading back this process's log. More...
#include <McpLogTool.h>

Public Member Functions | |
| virtual void | OnActivate () override |
| Called once, right after the provider was instantiated. Use it to hook into the editor. | |
| virtual void | OnDeactivate () override |
| Called once, before the provider is destroyed. | |
| virtual void | GetSupportedTools (ezDynamicArray< ezMcpToolDesc > &out_tools) const override |
| Appends the description of every tool that this provider implements. | |
| virtual void | Execute (ezStringView sToolName, const ezVariantDictionary &arguments, ezMcpToolResult &out_result) override |
| Executes one of the tools returned by GetSupportedTools(). | |
Public Member Functions inherited from ezReflectedClass | |
| virtual const ezRTTI * | GetDynamicRTTI () const |
| bool | IsInstanceOf (const ezRTTI *pType) const |
| Returns whether the type of this instance is of the given type or derived from it. | |
| template<typename T > | |
| EZ_ALWAYS_INLINE bool | IsInstanceOf () const |
| Returns whether the type of this instance is of the given type or derived from it. | |
Additional Inherited Members | |
Static Public Member Functions inherited from ezNoBase | |
| static const ezRTTI * | GetStaticRTTI () |
Writing to and reading back this process's log.
Reading matters more than writing: it is the cheapest feedback loop an agent has. It can trigger something and then look at what the application said about it, instead of asking the user to copy the log.
Host independent, hence concrete and living in the Mcp library rather than in a plugin: a ring buffer over ezGlobalLog is the same thing in the editor and in a game. Each process captures its own log, which is what makes it worth running a server in both - the editor cannot see what the engine process logged, and vice versa.
|
overridevirtual |
Executes one of the tools returned by GetSupportedTools().
| sToolName | The tool to run. A provider with a single tool may ignore this. |
| arguments | The 'arguments' object of the call. Missing and mistyped values are normal - the client is an AI and will get this wrong. Validate and report through out_result. |
Implements ezMcpToolProvider.
|
overridevirtual |
Appends the description of every tool that this provider implements.
Implements ezMcpToolProvider.
|
overridevirtual |
Called once, right after the provider was instantiated. Use it to hook into the editor.
Reimplemented from ezMcpToolProvider.
|
overridevirtual |
Called once, before the provider is destroyed.
Reimplemented from ezMcpToolProvider.