Variable: eca-chat-tool-call-functions
eca-chat-tool-call-functions is a customizable variable defined in
eca-chat.el.
Value
nil
Documentation
Abnormal hook run when a tool call changes state in a live chat.
Each function is called with SESSION and CONTENT, the raw tool call
content plist whose :type is one of "toolCallRun",
"toolCallRunning", "toolCalled" or "toolCallRejected". CONTENT
also carries :id, :name, :server, :arguments and :details;
for file edits :details has :type "fileChange" plus :path,
:diff, :linesAdded and :linesRemoved. Functions run with the
chat buffer current after the content was rendered, and only for live
notifications, not when history is loaded. Errors are demoted so they
never break chat rendering.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat.el
(defcustom eca-chat-tool-call-functions nil
"Abnormal hook run when a tool call changes state in a live chat.
Each function is called with SESSION and CONTENT, the raw tool call
content plist whose `:type' is one of \"toolCallRun\",
\"toolCallRunning\", \"toolCalled\" or \"toolCallRejected\". CONTENT
also carries `:id', `:name', `:server', `:arguments' and `:details';
for file edits `:details' has `:type' \"fileChange\" plus `:path',
`:diff', `:linesAdded' and `:linesRemoved'. Functions run with the
chat buffer current after the content was rendered, and only for live
notifications, not when history is loaded. Errors are demoted so they
never break chat rendering."
:type 'hook
:group 'eca)