@@ -335,3 +335,111 @@ ctx prompts -p system-prompt -p user-query
335335
336336This command helps you discover and explore available prompts in your configuration, making it easier to understand what
337337prompts are available for use with the MCP server.
338+
339+ ## List Available Tools
340+
341+ Lists all available MCP tools with their IDs, types, descriptions, and schema information.
342+
343+ ``` bash
344+ ctx tool:list
345+ # or
346+ ctx tools
347+ ```
348+
349+ ### Options
350+
351+ | Option | Description |
352+ | -----------------------| -------------------------------------------------------------------------|
353+ | ` --config-file ` , ` -c ` | Path to configuration file (absolute or relative to current directory). |
354+ | ` --type ` , ` -t ` | Filter tools by type (e.g., run, http). |
355+ | ` --id ` , ` -i ` | Filter tools by ID (can be used multiple times). |
356+ | ` --detailed ` , ` -d ` | Show detailed information including commands. |
357+
358+ ### Examples
359+
360+ ** List all tools in table format:**
361+
362+ ``` bash
363+ ctx tool:list
364+ ```
365+
366+ ** Show detailed information with commands:**
367+
368+ ``` bash
369+ ctx tool:list --detailed
370+ # or
371+ ctx tools -d
372+ ```
373+
374+ ** Filter tools by type:**
375+
376+ ``` bash
377+ ctx tool:list --type run
378+ # or
379+ ctx tools -t http
380+ ```
381+
382+ ** Filter tools by ID:**
383+
384+ ``` bash
385+ ctx tool:list --id git-status --id lint-code
386+ # or
387+ ctx tools -i git-status -i lint-code
388+ ```
389+
390+ ## Execute a Tool
391+
392+ Executes an MCP tool with interactive prompts for arguments based on the tool's schema.
393+
394+ ``` bash
395+ ctx tool:run < tool-id>
396+ ```
397+
398+ ### Options
399+
400+ | Option | Description |
401+ | --------------------------| -------------------------------------------------------------------------|
402+ | ` --config-file ` , ` -c ` | Path to configuration file (absolute or relative to current directory). |
403+ | ` --arg ` , ` -a ` | Tool arguments in format name=value (can be used multiple times). |
404+ | ` --no-interaction ` , ` -n ` | Do not ask any interactive questions. |
405+
406+ ### Examples
407+
408+ ** Execute a tool with interactive prompts:**
409+
410+ ``` bash
411+ ctx tool:run git-status
412+ ```
413+
414+ ** Execute a tool with arguments provided on command line:**
415+
416+ ``` bash
417+ ctx tool:run lint-code --arg path=src/MyClass.php --arg fix=true
418+ # or
419+ ctx tool:run lint-code -a path=src/MyClass.php -a fix=true
420+ ```
421+
422+ ** Execute in non-interactive mode (requires all necessary arguments):**
423+
424+ ``` bash
425+ ctx tool:run build-assets --arg env=production --no-interaction
426+ # or
427+ ctx tool:run build-assets -a env=production -n
428+ ```
429+
430+ ** Select a tool interactively:**
431+
432+ ``` bash
433+ ctx tool:run
434+ ```
435+
436+ ** Use a specific configuration file:**
437+
438+ ``` bash
439+ ctx tool:run deploy-app --config-file=tools-config.yaml
440+ # or
441+ ctx tool:run deploy-app -c tools-config.yaml
442+ ```
443+
444+ This command simplifies testing and executing MCP tools during development without requiring code changes or application
445+ redeployment.
0 commit comments