renderdoc_close_capture
Close the currently open RenderDoc capture file to release system resources and prepare for new debugging sessions.
Instructions
Close the currently open RDC capture file and release resources.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/renderdoc_mcp/server.py:298-300 (handler)The MCP tool handler for renderdoc_close_capture. This function calls the wrapper's close_capture method and returns a success message.
elif name == "renderdoc_close_capture": wrapper.close_capture() return [TextContent(type="text", text="Capture closed successfully.")] - src/renderdoc_mcp/server.py:62-70 (schema)Tool schema definition for renderdoc_close_capture, defining its name, description, and input schema (which requires no parameters).
Tool( name="renderdoc_close_capture", description="Close the currently open RDC capture file and release resources.", inputSchema={ "type": "object", "properties": {}, "required": [], }, ), - The actual implementation of close_capture in the RenderDocWrapper class. It shuts down the replay controller and clears the current file reference.
def close_capture(self) -> None: """Close the current capture.""" if self.controller: self.controller.ShutdownReplay() self.controller = None self.current_file = None