MCPcopy Create free account
hub / github.com/diillson/chatcli / extractQueryArg

Function extractQueryArg

cli/plugins/args_extract.go:154–156  ·  view source on GitHub ↗

extractQueryArg is a convenience wrapper for builtins that show a query string in the spinner. Tries the common key names used by both @websearch (query/q) and assistant-style payloads.

(args []string)

Source from the content-addressed store, hash-verified

152// query string in the spinner. Tries the common key names used by both
153// @websearch (query/q) and assistant-style payloads.
154func extractQueryArg(args []string) string {
155 return extractStringArg(args, "query", "q", "term", "search")
156}
157
158// extractURLArg is the analog for @webfetch.
159func extractURLArg(args []string) string {

Callers 2

DescribeCallMethod · 0.85

Calls 1

extractStringArgFunction · 0.85

Tested by 1