# Function as a Service

- [Getting started](https://cloud.secondstate.io/function-as-a-service/getting-started.md): Write and deploy Rust functions as web services
- [Context](https://cloud.secondstate.io/function-as-a-service/getting-started/stateful-function.md): Give the function a context
- [Send result to another service](https://cloud.secondstate.io/function-as-a-service/getting-started/send-result-to-another-service.md): Chain multiple functions together
- [Input and output](https://cloud.secondstate.io/function-as-a-service/input-and-output.md): The FaaS function can take a variety of different input and output options
- [JSON argument](https://cloud.secondstate.io/function-as-a-service/input-and-output/json-argument.md): Use JSON strings as function arguments
- [Binary argument](https://cloud.secondstate.io/function-as-a-service/input-and-output/binary-argument.md): Use a byte array as function call argument
- [Multiple arguments](https://cloud.secondstate.io/function-as-a-service/input-and-output/multiple-arguments.md): Use multipart HTTP request for function call
- [Argument from a URL](https://cloud.secondstate.io/function-as-a-service/input-and-output/argument-from-a-url.md): Get a function call argument from an URL
- [JSON return value](https://cloud.secondstate.io/function-as-a-service/input-and-output/json-return-value.md): Return a JSON value from the function
- [Binary return value](https://cloud.secondstate.io/function-as-a-service/input-and-output/binary-return-value.md): Return binary data from the function call
- [Redirect return value](https://cloud.secondstate.io/function-as-a-service/input-and-output/redirect-return-value.md): Redirect the JSON return value to another HTTP service endpoint
- [Stateful execution](https://cloud.secondstate.io/function-as-a-service/stateful-execution.md): Make the function stateful


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cloud.secondstate.io/function-as-a-service.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
