{"ok":true,"site":{"host":"json-views.com","url":"https://json-views.com/#/files/About%20JSON%20Views.json/views/Welcome","type":"live","desc":"Open-source JSON viewer and editor with annotations, inferred views, sidebar uploads, and local-file support for humans and agents.","tools":[{"name":"json_views_help","kind":"act","impl":"imperative","description":"Read the JSON Views agent reference: workspace operations, storage, $jsonviews schema, field types, paths, tables, pages, Kanban, filters, sorting, and a complete example. Read this to learn how to create or edit schemas and views.","inputSchema":{"type":"object","properties":{},"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/","pages":["/"]},{"name":"json_views_list_documents","kind":"answer","impl":"imperative","description":"List the JSON documents open in JSON Views. Returns stable ids, filenames, active state, source validity, and storage type. Optionally includes diagnostic counts. Call this first to identify a document.","inputSchema":{"type":"object","properties":{"includeDiagnosticCount":{"type":"boolean","default":false,"description":"Include a diagnosticCount for each document. This inspects every open document."}},"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/","pages":["/"]},{"name":"json_views_get_link","kind":"act","impl":"imperative","description":"Get a URL opening a file and optional exact view name, without navigating. Return the link to the user. Browser files must exist in their workspace; this is not a data-sharing link. Omit viewName to open the file root.","inputSchema":{"type":"object","properties":{"document":{"type":"string","description":"Stable document id from json_views_list_documents, or a unique filename or relative folder path."},"viewName":{"type":"string","description":"Exact, case-sensitive view name, unique within the file."}},"required":["document"],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/","pages":["/"]},{"name":"json_views_get_document","kind":"answer","impl":"imperative","description":"Read an open JSON document. Parsed JSON is returned by default; request source to preserve its exact whitespace and numeric spelling.","inputSchema":{"type":"object","properties":{"document":{"type":"string","description":"Stable document id from json_views_list_documents, or a unique filename or relative folder path."},"format":{"type":"string","enum":["json","source"],"default":"json"}},"required":["document"],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/","pages":["/"]},{"name":"json_views_get_diagnostics","kind":"answer","impl":"imperative","description":"Inspect an open document without changing it. Returns source, annotation, view, and value diagnostics with exact paths and repair help: expected shapes, examples, allowed values, and relevant capabilities. Fix the reported issues, then inspect again.","inputSchema":{"type":"object","properties":{"document":{"type":"string","description":"Stable document id from json_views_list_documents, or a unique filename or relative folder path."}},"required":["document"],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/","pages":["/"]},{"name":"json_views_create_document","kind":"act","impl":"imperative","description":"Create and select a browser-cached JSON document in the open JSON Views workspace. Returns document info with structured validation diagnostics. valid covers source syntax only; always inspect diagnostics for annotation and value errors.","inputSchema":{"type":"object","properties":{"filename":{"type":"string","minLength":1,"description":"Filename for the new document, normally ending in .json."},"value":{"description":"Any valid JSON value for the new document."}},"required":["filename","value"],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/","pages":["/"]},{"name":"json_views_patch_document","kind":"act","impl":"imperative","description":"Apply an RFC 6902 JSON Patch to an open document. Operations run atomically in order and use RFC 6901 JSON Pointer paths. Returns document info with diagnostics; an invalid patch returns {ok:false, saved:false, diagnostics} and leaves the document unchanged. valid covers source syntax only; always inspect diagnostics for annotation and value errors.","inputSchema":{"type":"object","properties":{"document":{"type":"string","description":"Stable document id from json_views_list_documents, or a unique filename or relative folder path."},"patch":{"type":"array","description":"RFC 6902 operations. Use test to guard assumptions and path \"\" to address the document root.","items":{"type":"object","properties":{"op":{"type":"string","enum":["add","remove","replace","move","copy","test"]},"path":{"type":"string","description":"RFC 6901 JSON Pointer."},"from":{"type":"string","description":"Source JSON Pointer for move or copy."},"value":{"description":"JSON value for add, replace, or test."}},"required":["op","path"]}}},"required":["document","patch"],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/","pages":["/"]},{"name":"json_views_set_source","kind":"act","impl":"imperative","description":"Replace an open document with exact source text. Any text is saved; malformed JSON returns document info with valid:false and diagnostics, and structured operations remain unavailable until repaired. valid covers source syntax only; always inspect diagnostics for annotation and value errors.","inputSchema":{"type":"object","properties":{"document":{"type":"string","description":"Stable document id from json_views_list_documents, or a unique filename or relative folder path."},"source":{"type":"string","description":"Complete source text; it may be temporarily invalid JSON."}},"required":["document","source"],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/","pages":["/"]},{"name":"json_views_select_document","kind":"act","impl":"imperative","description":"Select an open JSON document so it becomes visible in the JSON Views interface.","inputSchema":{"type":"object","properties":{"document":{"type":"string","description":"Stable document id from json_views_list_documents, or a unique filename or relative folder path."}},"required":["document"],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/","pages":["/"]},{"name":"json_views_delete_document","kind":"transact","impl":"imperative","description":"Delete an open document from the JSON Views workspace. For a browser document this also removes it from the cached workspace.","inputSchema":{"type":"object","properties":{"document":{"type":"string","description":"Stable document id from json_views_list_documents, or a unique filename or relative folder path."}},"required":["document"],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/","pages":["/"]}],"category":"Developer Tools","favicon":"/favicons/json-views.com.png","apiSurface":"spec","toolCount":10}}