# tasks_list

Everything running now, by author. `tasks`: started through cmdop. `outside`: other processes per machine, by agent:claude-code, agent:codex or user. Ended ones: history_search.

**In short:** A [server tool](https://docs.cmdop.ai/reference/tools.md#server-tools): the server answers it from its own record, so it works while every machine is off. Over MCP call `tasks_list`; over HTTP send `"tool": "tasks_list"` to [`POST /api/v1/call`](https://docs.cmdop.ai/reference/http/post-call.md) without `machine`.

## Arguments

| Name | Type | Required | Meaning |
| --- | --- | --- | --- |
| `machine` | `string` | no | Only this machine (name or id). Default: all machines. |

## Result

| Name | Type | Required | Meaning |
| --- | --- | --- | --- |
| `outside` | `object[]` | yes | Other processes on each online machine (`proc_list` there), by who started them. |
| `tasks` | `object[]` | yes | Tasks started through cmdop that still run. |

## Examples

**MCP**

```json
{
  "name": "tasks_list",
  "arguments": {}
}
```

**HTTP**

```bash
curl -sS -X POST "https://<contour>.cmdop.dev/api/v1/call" \
  -H "Authorization: Bearer $CMDOP_TOKEN" \
  -H "x-cmdop: 1" \
  -H "Content-Type: application/json" \
  -d '{"tool":"tasks_list","args":{}}'
```

## Limits

The token is the only check: no risk class applies, and the call is not counted against the plan. A call with `machine` set, or with `sealed` instead of `args`, returns [`bad_args`](https://docs.cmdop.ai/reference/errors/bad_args.md). A refused call returns one of the [error codes](https://docs.cmdop.ai/reference/errors.md).

## Notes

Another author's command, folder and error are shown only to an agent whose grant includes `exec`; for other callers they are left out and `hidden` says why.
