Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Agent permissions

What an agent may read and change is decided by TKTail at every call, by choices only the user makes in TKTail. A prompt, a configuration file, this documentation or the AI Agent Harness grants nothing: an agent that has all of them still gets nothing until the user allows it in TKTail - and loses it the moment the user turns it off.

What decides access

LayerSet byWhat it decides
A running TKTail windowthe user starts TKTailWithout one, the MCP server answers on its own: status, the formats and samples the agent sends - no sources.
Allow AI access (MCP)the user: Settings > AI Access (MCP), or Tools > Allow AI Access (MCP)Every tool that reads the window’s sources. Off by default; turned off, the next call is refused.
The transportthe user’s client configuration; HTTP also Accept AI clients over HTTPstdio: every edition, the user’s own Windows account. HTTP: Trial and Pro, off by default, a token on every request, this computer only unless the user chose the network.
The scopethe user: the tabs open in TKTail; Tools > AI Investigation Roots…The Safe Workspace - what is open - for every edition; folders the user approved (Extended Investigation) for Trial and Pro. Never a path the agent invents, .., or a link out of an approved folder.
Permissions for changesthe user: three settings under What AI clients may changeSaving format profiles; saving and deleting Saved Searches and Metric Sets; managing alerts. Each off by default and only together with AI access.
The editionthe licenseMetrics, Extended Investigation and HTTP are included with Trial and Pro (Pricing).

The user sees what an agent did: its searches in Search Results (marked AI) and Jobs, its changes in Manage Alerts, Saved Searches and the Metric Sets, and one line per answer in Output > Application - never the content (What TKTail records).

Read-only and changing tools

Every tool reads, except those that change data - each of them needs its own permission and is annotated readOnlyHint: false, so a client asks the user before calling it. Every tool needs AI access; the table lists what some need beyond it, generated from the MCP tool reference of this release.

ToolChanges dataBeyond AI access it needsNote
tktail_statusanswers without a running window
tktail_list_instancesanswers without a running window
tktail_list_sourcesanswers without a running window
tktail_get_current_contextanswers without a running window
tktail_open_sourceTrial or Pro (Extended AI investigation (MCP))opens the file as a paused tab in the window
tktail_get_records_aroundindexTimes: true starts a background time index of the source
tktail_searcha folder scope below an Investigation Root: Trial or Prostarts an AI search session, shown in Search Results and Jobs (at most 5 kept)
tktail_cancel_searchstops one of the client’s own searches (the user’s searches answer not_allowed)
tktail_list_saved_searchesanswers without a running window
tktail_run_saved_searchstarts a new AI search session from a copy of the Saved Search
tktail_save_searchyesAllow AI to save searches and Metric Sets; paths below an Investigation Root: Trial or Pro
tktail_delete_saved_searchyesAllow AI to save searches and Metric Sets
tktail_validate_alerta metric alert or metric evidence: Trial or Pro
tktail_save_alertyesAllow AI to manage alerts; a metric alert or metric evidence: Trial or Pro
tktail_set_alert_enabledyesAllow AI to manage alerts
tktail_delete_alertyesAllow AI to manage alerts
tktail_pin_searchyesAllow AI to save evidence and pin searchespins or unpins a search: a pinned search is never closed to make room and is kept across a restart (a snapshot of its references in the data folder); an AI client cannot unpin the user’s pin
tktail_save_evidenceyesAllow AI to save evidence and pin searches; correlatedMetricSets: Trial or Pro; a destination folder below an Investigation Root: Trial or Prowrites a redacted evidence package (a ZIP) into the Evidence Store (the data folder’s Evidence folder), within its size limits; with destination also a copy below an Investigation Root
tktail_delete_evidenceyesAllow AI to save evidence and pin searchesrecords a deletion REQUEST in the Evidence Store’s catalog and tells the user; nothing is deleted until the user confirms it in TKTail
tktail_list_metricsTrial or Pro (Performance counters (Metrics))
tktail_get_metric_currentTrial or Pro (Performance counters (Metrics))
tktail_get_metric_historyTrial or Pro (Performance counters (Metrics))
tktail_get_metric_summaryTrial or Pro (Performance counters (Metrics))
tktail_list_metric_setsTrial or Pro (Performance counters (Metrics))
tktail_get_metric_setTrial or Pro (Performance counters (Metrics))
tktail_save_metric_setyesAllow AI to save searches and Metric Sets; Trial or Pro (Performance counters (Metrics))
tktail_delete_metric_setyesAllow AI to save searches and Metric Sets
tktail_list_formatsanswers without a running window
tktail_get_formatanswers without a running window
tktail_detect_formatanswers without a running window
tktail_preview_formatanswers without a running window
tktail_new_format_draftanswers without a running window
tktail_validate_formatanswers without a running window
tktail_save_formatyesAllow AI to save custom formats
tktail_list_investigation_rootsto see the roots (without it the answer says Extended Investigation is not available): Trial or Pro
tktail_discover_filesTrial or Pro (Extended AI investigation (MCP))

Every other tool (14 of 50) reads the window’s sources with AI access alone: tktail_get_source_sample, tktail_get_record, tktail_get_search, tktail_get_search_results, tktail_aggregate, tktail_get_saved_search, tktail_list_alerts, tktail_get_alert, tktail_list_alert_occurrences, tktail_get_alert_occurrence, tktail_get_occurrence_evidence, tktail_list_evidence, tktail_get_evidence, tktail_verify_evidence.

Refusals

A refusal is a tool result with isError: true and structuredContent.error {category, message}; the message says what the user can do. Tell the user - do not retry the same call, and never work around it.

CategoryMeaning
invalid_argumentsan argument is missing, of the wrong type or unknown
access_offthe user has not allowed AI access (mcp.allowWindow)
capability_unavailablethe license does not include the capability (Metrics, Investigation Roots, HTTP)
unavailableno running TKTail window, not the Primary, or it is closing
busythe window did not answer in time, or a bound was reached - retry later
source_not_foundno open source with this sourceId
stale_sourcethe reference belongs to an older state of the source
not_foundno such search, saved search, metric set, format, event or metric
no_contextnothing is selected in the window
scope_not_allowedthe path is neither an open source nor below an approved Investigation Root
unsupportedthe source kind cannot answer this (e.g. a Metrics View as a record source)
not_allowedthe user’s consent for this change is off, or the object is the user’s own
conflictthe stored version or content changed - read it again
time_not_indexedthe source has no time index yet (indexTimes starts one)
time_indexingthe time index is being built
no_record_timesthe source’s records have no timestamps
response_too_largethe answer exceeds the response budget - ask for fewer items
internalan unexpected failure

Protocol errors (a malformed request, an unknown method or tool, an unsupported protocol revision) are JSON-RPC errors instead - their codes are in the developer reference (docs/MCP.md).

What no permission allows

  • Running commands, programs, scripts or a terminal; reading the registry, services or settings; changing settings.
  • Reading, listing or writing files outside the sources open in TKTail, the Investigation Roots and TKTail’s own stores (format profiles, Saved Searches, Metric Sets, alerts).
  • Adding, enabling or removing an Investigation Root - only the user does that.
  • Deleting, acknowledging or exporting incidents; changing a built-in format, a built-in Metric Set or a .tktail file.
  • Starting collection of performance counters TKTail does not already collect.
  • Overwriting the user’s changes: a change names the version it read and is refused (conflict) if the object changed.