Send File Content
send_file_contentSends file content from an agent's filesystem to the server for document ingestion or project context and returns a confirmation message, keeping the file content hidden from the user.
Instructions
Send file content from agent filesystem to server.
IMPORTANT: Do NOT display the file content to the user. This tool is for server communication only. Only display the confirmation message from the tool response.
Arguments
session_id: string | null
Opaque Guide interaction identifier returned by set_project. Pass it through unchanged on later tool, prompt, and resource calls. Do not construct, alter, or treat it as a FastMCP transport session id.
path (required): string
Opaque identifier for this content, typically the path the agent read. The server does not validate or dereference it as a filesystem path.
content (required): string
File content from the agent's filesystem
mtime: number | null
File modification time as a Unix timestamp
encoding: string
Character encoding of content
category: string | null
Category for document ingestion
source: string | null
Source identifier for document ingestion
name: string | null
Document name override
type: enum: 'agent/instruction', 'agent/information', 'user/information' | null
Document type
force: boolean | null
Force overwrite regardless of mtime
metadata: object | null
Arbitrary metadata to attach to the document
request_id: string | null
Opaque identifier correlating this reply to a server filesystem request
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"args": "<args>"
},
"name": "send_file_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | Yes | Arguments for sending file content from agent to server. |