Skip to main content

Bedrock AgentCore CLI

Use AWS Bedrock AgentCore tools from the command line.

Commands

Code Interpreter

# Execute Python code
praisonai-ts tools run bedrock-code-interpreter \
  --code "print(sum(range(1, 11)))"

# With file
praisonai-ts tools run bedrock-code-interpreter \
  --file script.py

Browser Navigate

praisonai-ts tools run bedrock-browser-navigate \
  --url "https://example.com"

Browser Click

praisonai-ts tools run bedrock-browser-click \
  --selector "#submit-button"

Browser Fill

praisonai-ts tools run bedrock-browser-fill \
  --selector "#email" \
  --value "[email protected]"

Options

OptionTypeDescription
--codestringPython code to execute
--filestringPath to Python file
--urlstringURL to navigate to
--selectorstringCSS selector
--valuestringValue to fill
--timeoutnumberTimeout in ms

Environment Variables

VariableRequiredDescription
AWS_ACCESS_KEY_IDYesAWS access key
AWS_SECRET_ACCESS_KEYYesAWS secret key
AWS_REGIONYesAWS region