nsmcp::CodeSearchTool method validate (public)
<instance of nsmcp::CodeSearchTool> validate arguments
Defined in /usr/local/ns/tcl/nsmcp/code-tools.tcl
Validate loaded-code search and pagination arguments. Decode the rooted JSON argument object and enforce this tool's option, range and combination constraints.
- Parameters:
- arguments (required)
- Rooted ns_json typed triples for the tool's JSON argument object.
- Returns:
- An empty result on success; invalid input raises RPC error -32602.
- Testcases:
- No testcase defined.
Source code: if {[catch { :options $arguments } message]} { return -code error -errorcode {NSMCP RPC -32602} $message }XQL Not present: Generic, PostgreSQL, Oracle
![[i]](/resources/acs-subsite/ZoomIn16.gif)