Skip to content

API Reference parrot.tools.exports_mode

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.tools.exports_mode

View source

Host switch of the export tools' store-only mode (PA-11).

Off by default: the export tools (excel, csv, word, powerpoint, pdf, df_to_html, power_bi, chart) keep their previous arguments, behaviour and return values. A host (Agent Studio) turns it on with app[STUDIO_EXPORTS_STORE_ONLY] = True (parrot.handlers.studio copies it to this process on startup). While it is on:

  • the arguments a tool lists in studio_hidden_args (output directory / file name / overwrite / template path / stylesheets ...) are not in its LLM schema and are dropped from a call: the LLM chooses CONTENT, never where it goes;
  • a template is a file NAME inside the server's templates directory, never a path;
  • the artifact_store constructor parameter is server-managed (filled from app["artifact_store"]), exports are published under the caller's tenant partition and the tool returns {url, filename, bytes};
  • a Studio-scoped call with no store is refused and never writes a local file.

Attribute FEATURES

Attribute STUDIO_EXPORTS_STORE_ONLY

Function configure

Turn the store-only mode on or off for this process (the host's app[STUDIO_EXPORTS_STORE_ONLY]).

configure(enabled: bool) -> None

Parameter Type Default Description
enabled bool

Function is_enabled

Whether the export tools run in store-only mode.

is_enabled() -> bool

Returns: bool

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally