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; the AI access rules (File Explorer > AI Access, Tools > AI Access Rules…)The Safe Workspace - what is open - and the files and Windows Event Logs the AI access rules allow (default deny, an exclusion always wins; the Security log only by a rule that names it), for every edition. Never a path the agent invents, .., or a link out of what is allowed - and never whether a refused file exists (outside_investigation_access).
Permissions for changesthe user: four settings under What AI clients may changeSaving format profiles; saving and deleting Saved Searches and Metric Sets; managing alerts; saving evidence packages and pinning searches. Each off by default and only together with AI access.
AI Data Protectionalways on; the user adds rules in Tools > AI Data Protection…What an answer may show: secrets - passwords, tokens, keys, fields named as secret, the user’s own rules - are masked in everything sent to an agent. The agent sees that protection is active, never what it looks for, and cannot change it.
Forensic Modethe operator: TKTail.exe --forensic, with --output-root for Evidence and reportsWhat lasts: what an agent saves lasts for the session only; a call that needs a persistent write the session forbids - an evidence package in a memory-only session, a copy outside the output root - is refused (forensic_policy_denied) and nothing is written. tktail_status says the session is forensic; MCP over HTTP opens only when the operator turns it on in the session.
The editionthe licenseNever what an agent may read: the AI access rules, AI Data Protection and the reports are in every edition. Trial and Pro add Metrics, a log’s history or an archive’s entries searched as one source, conditional monitoring and HTTP (Pricing). A license never widens the rules, a permission or a Forensic restriction.

The user sees what an agent did: each call with its decision and scope in Tools > AI Investigation Activity (never the agent’s prompts), 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 for what it is given
tktail_list_instancesanswers without a running window for what it is given
tktail_list_sourcesanswers without a running window for what it is given
tktail_get_current_contextanswers without a running window for what it is given
tktail_open_sourceevery edition (AI access to the files you allow (AI Access Rules))opens the file - or, with “channel”, the Windows Event Log channel an Event Log rule allows - as a tab in the window (a file paused, a channel not following LIVE)
tktail_get_records_aroundindexTimes: true starts a background time index of the source
tktail_query_event_loga channel that is not open in TKTail (an Event Log rule of the user allows it): every editionreads events of one Windows Event Log channel in a bounded window (the user’s Event Log rules decide; the Security log only by a rule that names it) - nothing is written
tktail_searcha folder scope the AI access rules allow: every editionstarts 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 for what it is given
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 the AI access rules allow: every edition
tktail_delete_saved_searchyesAllow AI to save searches and Metric Sets
tktail_validate_alerta metric alert or metric evidence: Trial or Pro; an activation other than always, or onFire: Trial or Pro
tktail_save_alertyesAllow AI to manage alerts; a metric alert or metric evidence: Trial or Pro; an activation other than always, or onFire: Trial or Pro
tktail_set_alert_enabledyesAllow AI to manage alerts
tktail_delete_alertyesAllow AI to manage alerts
tktail_list_activationsfor targets to run conditionally (without it the answer says they are dormant): Trial or Pro
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 the AI access rules allow as a whole: every editionwrites 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 in a folder the AI access rules allow
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_hash_filespaths (a file that is not open in TKTail): every editionreads each whole file (one file at a time, in the background); the request is listed in Jobs - nothing is written
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_sample_processTrial or Pro (Performance counters (Metrics))collects Process Diagnostics of one process for 2-8 s, then releases it - nothing in the process is changed
tktail_start_metric_monitoringTrial or Pro (Performance counters (Metrics)); always - the monitoring runs as an AI client’s activation lease: Trial or Procollects one Metric Set every 5-30 s for at most 60 minutes as a temporary monitor the user sees (Jobs, Tools > Conditional Monitoring) and may stop; it ends by itself - nothing in the user’s configuration changes
tktail_stop_metric_monitoringTrial or Pro (Performance counters (Metrics))ends the AI client’s own metric monitoring before its time - its samples stay in the metric history; a user’s monitor is never stopped
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 for what it is given
tktail_get_formatanswers without a running window for what it is given
tktail_detect_formatanswers without a running window for what it is given
tktail_preview_formatanswers without a running window for what it is given
tktail_new_format_draftanswers without a running window for what it is given
tktail_validate_formatanswers without a running window for what it is given
tktail_save_formatyesAllow AI to save custom formats
tktail_list_investigation_rootsto see the AI access rules (without it the answer says Extended Investigation is not available): every edition
tktail_discover_filesevery edition (AI access to the files you allow (AI Access Rules))
tktail_get_log_historyevery edition (AI access to the files you allow (AI Access Rules))
tktail_list_archive_entriesevery edition (AI access to the files you allow (AI Access Rules))
tktail_list_knowledgeanswers without a running window for what it is given
tktail_get_knowledgeanswers without a running window for what it is given
tktail_get_investigationreads the caller’s own AI investigation activity (this client session’s calls as TKTail recorded them) - never another client’s; nothing is changed
tktail_start_investigationends the caller’s current AI investigation (startedNew) and begins a new one in TKTail’s AI activity record - nothing in the user’s data or configuration changes

Every other tool (15 of 63) 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, tktail_list_jobs.

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, a log’s history or an archive searched as one source, conditional monitoring, HTTP), or reading files from disk is off (safe mode)
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 (error.details: retryable, retryAfterMs when TKTail knows when)
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
outside_investigation_accessno AI access rule of the user allows the path or the Windows Event Log channel, or an exclusion (Deny) covers it - never says whether it exists or which rule decided; error.details.operatorAction says where the user would allow it, in TKTail
scope_not_allowednot a scope here: a path that is not open in TKTail while reading files from disk is off (safe mode), a file named as a folder or the reverse, an unusable rule
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 (error.details: requiredPermission - the setting - and operatorAction - where the user turns it on), 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
resource_budget_denieda bound of an AI client’s request (files, bytes, concurrent samplings or monitorings, a Heavy collection - error.details: bound, limit) - ask for less or later, or the user does it in TKTail
forensic_policy_deniedForensic Mode: the answer would need a persistent write the session’s policy forbids (an evidence package in a memory-only session, a copy outside the output root) - nothing was written; error.details: persistenceMode, operatorAction; never the output root’s path
response_too_largethe answer exceeds the response budget - ask for fewer items
knowledge_corrupta built-in knowledge topic failed its SHA-256 check (TKTail.exe is damaged - reinstall it); it is never returned
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 files the AI access rules allow and TKTail’s own stores (format profiles, Saved Searches, Metric Sets, alerts).
  • Allowing, excluding, enabling or removing an AI access rule - only the user does that (Allowing folders and files for AI).
  • Deleting, acknowledging or exporting incidents; changing a built-in format, a built-in Metric Set or a .tktail file.
  • Collecting performance counters beyond the two bounded collections its tools describe (Trial / Pro): one process for 2-8 seconds (tktail_sample_process) and one Metric Set for at most 60 minutes as a temporary monitor the user sees in Jobs and Conditional Monitoring and may stop (tktail_start_metric_monitoring) - never a Heavy collection, and an agent never starts, stops or approves the user’s own monitoring.
  • Overwriting the user’s changes: a change names the version it read and is refused (conflict) if the object changed.