Skip to main content

Overview

Use the Filestore MCP server from your ATXP-powered agent to store, retrieve, and delete files.

Example prompts

  • “Upload the file example.txt to the filestore.”
  • “Download the file example.txt from the filestore.”
  • “Delete the file example.txt from the filestore.”

Tools

Takes file data and saves it to the file store. For example, if you need to save a file between conversations, you can use this tool.

Arguments

Accepts a JSON object with the following properties:
string
The base64 encoded content of the file to save.
string
The URL of a file to copy contents from.
string
The content type of the file to save
string
The file extension of the file to save
boolean
Whether to make the file public.

Response

Returns a JSON object with the following properties:
string
The status of the save file operation. The status key will have the value “success” when the file is saved successfully.
string
The name of the file that was saved.
string
The URL that the file is accessible at.
Returns the contents of a file from the file store. For example, if you need to read a file between conversations, you can use this tool.

Arguments

Accepts a JSON object with the following properties:
string
required
The ID of the file to read.

Response

Returns a JSON object with the following properties:
string
The status of the read file operation. The status key will have the value “success” when the file is read successfully.
string
The name of the file that was read.
string
The base64 encoded content of the file that was read.
Deletes a file from the file store. For example, if you need to delete a file between conversations, you can use this tool.

Arguments

Accepts a JSON object with the following properties:
string
required
The name of the file to delete.

Response

Returns a JSON object with the following properties:
string
The status of the delete file operation. The status key will have the value “success” when the file is deleted successfully.
string
The name of the file that was deleted.

Usage

1

Define the Filestore service

Create a reusable service configuration that points to the MCP server and standardizes how you pass arguments and read results. This lets your agent easily interact with the Filestore tools in a consistent manner.
2

Create an ATXP client

Create a client using an ATXP account by importing the ATXP client SDK and other dependencies.
3

Use the Filestore service in your agent

Call the Filestore tool by passing your natural-language instruction as the argument the getArguments method.Read the response using the getResult method.
You should see the result of the filestore operation printed in your console.