agentcore_code_interpreter
Execute and manage code within AI agents on AWS AgentCore MCP Server, ensuring secure and scalable integration for production-ready AI applications.
Instructions
Documentation on AgentCore Code Interpreter for executing code in agents.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The handler function for the 'agentcore_code_interpreter' tool. It is decorated with @mcp.tool() which registers it with the MCP server. The function returns the contents of the 'content/code_interpreter.md' file, serving as documentation for the code interpreter feature.@mcp.tool() async def agentcore_code_interpreter() -> str: """Documentation on AgentCore Code Interpreter for executing code in agents.""" return pkg_resources.joinpath("content", "code_interpreter.md").read_text( encoding="utf-8" )