Skip to main content
Glama
eduardoddddddd

DesktopCommanderPy

interact_with_process

Send input to an active process and receive its response. Ideal for interactive REPLs such as Python, Node.js, or shell sessions.

Instructions

Envía input a un proceso activo y devuelve su respuesta.

Ideal para REPLs interactivos: Python (-i), Node.js (-i), shells, etc. El input se escribe en el stdin del proceso y se espera output nuevo.

Ejemplo de flujo:

  1. start_process('python -i') → PID 1234

  2. interact_with_process(1234, 'import pandas as pd')

  3. interact_with_process(1234, 'df = pd.read_csv("datos.csv")')

  4. interact_with_process(1234, 'print(df.describe())')

  5. kill_process(1234)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pidYesPID del proceso (obtenido de start_process).
input_textYesTexto a enviar al stdin del proceso. Se añade \n automáticamente si no lo tiene.
timeout_secondsNoSegundos esperando respuesta tras enviar input. Default 8.
max_linesNoMáximo de líneas de respuesta a devolver. Default 200.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description discloses key behaviors: it writes input to stdin, waits for new output, includes a timeout, and appends a newline automatically. However, it does not explain what happens if no output is produced or if the process terminates.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise, with a front-loaded purpose sentence, followed by usage context and a clear, multi-step example. Every sentence adds value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 4 parameters and an output schema, the description covers the essential workflow and includes practical example steps. It could mention error handling or edge cases, but overall it is sufficiently complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% (baseline 3), and the description adds value by noting the automatic newline appending and providing defaults for timeout and max_lines, which are not fully explained in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('Envía input') and resource ('proceso activo'), and the example flow distinguishes it from siblings like read_process_output and execute_command by emphasizing interactive REPLs.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly says 'Ideal para REPLs interactivos' and provides a step-by-step example showing when to use it with start_process and kill_process, but does not explicitly state when not to use it or list alternative tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/eduardoddddddd/DesktopCommanderPy'

If you have feedback or need assistance with the MCP directory API, please join our Discord server