[Lldb-commits] [lldb] [lldb] Document MCP tools & resources (PR #148708)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Wed Jul 16 09:22:07 PDT 2025


================
@@ -75,7 +75,69 @@ Configuration example for [Visual Studio Code](https://code.visualstudio.com/doc
 }
 ```
 
-### Troubleshooting
+## Tools
+
+Tools are a primitive in the Model Context Protocol that enable servers to
+expose functionality to clients.
+
+LLDB's MCP integration exposes one tool, named `lldb_command` which allows the
+model to run the same commands a user would type in the LLDB command
+interpreter. It takes two arguments:
+
+1. The unique debugger ID as a number.
----------------
JDevlieghere wrote:

It's the latter, you never specify the debugger ID. At most, you select a resource through the UI, and the model connects the dots behind the scenes that that debugger resource has a certain ID and passes it along here.

https://github.com/llvm/llvm-project/pull/148708


More information about the lldb-commits mailing list