Function: eca-mcp--format-input-schema-args
eca-mcp--format-input-schema-args is a natively compiled function
defined in eca-mcp.el.
Signature
(eca-mcp--format-input-schema-args INPUT-SCHEMA)
Documentation
Format INPUT-SCHEMA properties into a list of readable arg description strings.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-mcp.el
(defun eca-mcp--format-input-schema-args (input-schema)
"Format INPUT-SCHEMA properties into a list of readable arg description strings."
(when-let* ((properties (plist-get input-schema :properties)))
(let ((required (append (plist-get input-schema :required) nil))
(args '()))
(cl-loop for (key val) on properties by #'cddr
do (let* ((name (substring (symbol-name key) 1))
(type (plist-get val :type))
(description (plist-get val :description))
(required? (member name required)))
(push (concat (propertize name 'face (if required? 'bold 'italic))
(when type
(concat " (" (propertize type 'face 'font-lock-type-face) ")"))
(unless required?
(propertize " [optional]" 'face 'shadow))
(when description
(concat ": " description)))
args)))
(nreverse args))))