Function: eca-chat-tool-call-accept-next

eca-chat-tool-call-accept-next is an interactive and natively compiled function defined in eca-chat.el.

Signature

(eca-chat-tool-call-accept-next)

Documentation

Search the next pending approval tool call in the buffer and approve it.

Starting from the beginning of the buffer.

Key Bindings

eca-chat-mode-map C-c C-S-a

Source Code

;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat.el
;;;###autoload
(defun eca-chat-tool-call-accept-next ()
  "Search the next pending approval tool call in the buffer and approve it.
Starting from the beginning of the buffer."
  (interactive)
  (eca-assert-session-running (eca-session))
  (eca-chat--with-current-buffer (eca-chat--get-active-buffer (eca-session))
    (save-excursion
      (goto-char (point-min))
      (when (text-property-search-forward 'eca-tool-call-pending-approval-accept t t)
        (call-interactively #'eca-chat--key-pressed-return)))))