nsmcp::QuestionBackend method toolCallResult (public)
<instance of nsmcp::QuestionBackend> toolCallResult item
Defined in /usr/local/ns/tcl/nsmcp/question-backend.tcl
Extract and normalize a Codex tool-call result. Keep transport and permission errors distinct from successful results and canonicalize duplicated structured evidence.
- Parameters:
- item (required)
- Rooted typed JSON for a completed backend tool-call item.
- Returns:
- Serialized JSON for the normalized tool result, or JSON null when absent.
- Testcases:
- No testcase defined.
Source code: if {![catch { ns_json triples gettype -path error -- $item } type] && $type ne "null"} { set error [ns_json triples getvalue -output triples -path error -- $item] return [ns_json value -- [list {} object [list isError boolean true error $type $error]]] } if {[catch { ns_json triples gettype -path result -- $item } type]} { return null } return [:canonicalResult [ns_json value -- [list {} $type [ns_json triples getvalue -output triples -path result -- $item]]]]XQL Not present: Generic, PostgreSQL, Oracle
![[i]](/resources/acs-subsite/ZoomIn16.gif)