---
title: "Fs Exec"
method: POST
path: "/fs/{source_id}/exec"
tags: ["Usage"]
---

# Fs Exec

`POST /fs/{source_id}/exec`

## Path parameters

- `source_id` string, required

## Request body

- ExecBody
  - `command` string, required — Bash command to execute (e.g. 'cat /file.py', 'grep -rn pattern .')
  - `cwd` string — Working directory for relative paths

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/trynia/apis/nia-ai-api.md) · [All operations](https://skmtc.net/trynia/apis/nia-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/trynia/nia-ai-api/versions/d216ffc3efb6/schema)
