How to register WorkspaceToolscsharp
registry.Register(new AgentTool( "write_workspace_file", "Writes a project/document file to the workspace output folder. Do NOT use for user facts — use store_memory with paths like user/name instead.", args => WriteWorkspaceFile(args), new { type = "object", properties = new { path = new { type = "string", description = "Relative path/filename of the file to write in the output folder." }, content = new { type = "string", description = "The text content to write into the file." } }, required = new[] { "path", "content" } }, ToolCategory.Self ));